CHAPTER 15: Developing for Android Wearable Devices 559
EarthTime UI Design: Styling an AnalogClock
Let’s start with the easier XML markup, and design a low-memory watch face (a skin). You will do
this using the FrameLayout class as the layout container, and the AnalogClock class as the UI
widget. As you can see in Figure 15-6, I am using Eclipse in a new way, by minimizing the Package
Explorer (far left) and Outline and Error views (far right) of the Eclipse UI, and using the entire area of
the IDE for my editing pane.
Figure 15-6. Add an
As you can see, the
to earthTime and add a
pop-up helper, and select and insert the
Add an android:id parameter, and name the
and paste the two required android:layout_width and android:layout_height parameters from the
you are ready to add your background image!