I'm building a watch face using the WFF format...
The XML reference documentation says it is possible to create presets configurations, so called "flavors", however they don't show on the watch face editor (phone or watch). It is like the editor is ignore this setting.
watchface.xml
<UserConfigurations>
<!--My configurations -->
<Flavors defaultValue="0">
<Flavor id="0" displayName="flavor_one" icon="flavor_one_icon">
<Configuration id="fontClock" optionId="0"/>
<Configuration id="clockMainColor" optionId="1"/>
</Flavor>
<Flavor id="1" displayName="flavor_two" icon="flavor_two_icon">
<Configuration id="fontClock" optionId="2"/>
<Configuration id="clockMainColor" optionId="0"/>
</Flavor>
</Flavors>
</UserConfigurations>
- I already checked the ids, they are all correct;
- String file contains the names, all correct, I tested them on others settings and they work/show;
- The icons are 150x150 (like google's sample), I also tried 300x300, 350x350, 360x360 (max, according to the doc), 400x400, 450x450;
- I tried without icons;
- I tried adding displayName to the Flavors tag;
- Tested on watch and emulator.
I also added the required tags on the watch_face_info.xml
<?xml version="1.0" encoding="utf-8"?>
<WatchFaceInfo>
<Preview value="@drawable/preview"/>
<AvailableInRetail value="false"/>
<MultipleInstancesAllowed value="true"/>
<Editable value="true"/>
<FlavorsSupported value="true"/>
</WatchFaceInfo>
just in case, my manifest
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-sdk
android:minSdkVersion="34"
android:targetSdkVersion="34" />
<uses-feature
android:name="android.hardware.type.watch"/>
<application
android:label="@string/watch_face_name"
android:hasCode="false">
<meta-data
android:name="com.google.android.wearable.standalone"
android:value="true" />
<property
android:name="com.google.wear.watchface.format.version"
android:value="2" />
</application>
</manifest>
Anyone knows what is wrong?? Thanks!