Menu

1 / 2

Turning a sentence into a Wear OS watch face: what I learned building an AI face creator

DEV Community: android·Alexander G·about 16 hours ago
#BXw7dVEi
#devtoandroid#devto#dev#watch#face
Reading 0:00
15s threshold

I make Watchland, a watch face app for Wear OS. For the last few months I've been building an AI face creator for it: you type a sentence like "neon digital time glowing cyan and magenta over a rainy city at night", it designs 4 faces, you change anything by asking ("gold hands", "add seconds"), and it installs on your watch.

Generating the pictures turned out to be the easy part. Here's what took the time.

The watch doesn't take pictures, it takes Watch Face Format

New Wear OS watch faces have to use Watch Face Format (WFF): a declarative XML file plus images, rendered by the system. No code runs on the watch. So the AI can't just hand over an image. The hour hand, the minute hand, the date window and the step counter all have to be separate parts the system can move and fill in.

So the AI doesn't write XML. It produces a recipe: the dial art, the hand style, where the complications go, which fonts and colours. A deterministic builder turns that recipe into WFF XML.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.