I tried to make this in drawable:
Code:<?xml version="1.0" encoding="utf-8"?> <!-- Defines the least significant hour number using a level-list of drawables that can be referenced when creating clocks. --> <level-list xmlns:android="http://schemas.android.com/apk/res/android"> <item android:text="one" android:textSize="20px" /> <item android:text="two" android:textSize="20px" /> <item android:text="three" android:textSize="20px" /> <item android:text="four" android:textSize="20px" /> <item android:text="five" android:textSize="20px" /> <item android:text="six" android:textSize="20px" /> <item android:text="seven" android:textSize="20px" /> <item android:text="eight" android:textSize="20px" /> <item android:text="nine" android:textSize="20px" /> <item android:text="ten" android:textSize="20px" /> <item android:text="eleven" android:textSize="20px" /> <item android:text="twelve" android:textSize="20px" /> </level-list>
that had to be the hours but it didn't worked on the watch.
however, you can write what ever you want on png files and use it as a level list
Cheers naheel, I had thought of doing that too, the problem is it's far less adaptable if I want to create variations on themes and tweaking sizes etc to fit. It'll also make it hard in the future if I wanted to localize to other languages. It's frustrating for Sony to put in a tutorial you can do this but not properly explain how it's done! I felt their api documentation was a bit light too.
Oh well, we'll be releasing a binary watch face in the mean time when I get round to it
Sent from my HTC One using XDA Premium 4 mobile app