560 CHAPTER 15: Developing for Android Wearable Devices
Figure 15-8. Copy the earthtime240.png image asset into the /res/drawable-mdpi folder and rename it earthtime.png
Figure 15-7. Add ID, set to earthAnalogClock, add required layout_width and layout_height, then set to match_parent
Adding the Background Image of Planet Earth
I have created an earthtime240.png for Neptune Pine. It is 320 by 240 pixels, since the watch
will be square and centered, as well as earthtime480.png (HDPI) and earthtime960.png (XHDPI)
versions, so this app can run not only on a Neptune Pine, but also on smartphones, tablets, and
iTV Sets. Copy the earthtime240.png shown renamed (after copying) in Figure 15-8 into the /res/
drawable-mdpi folder. MDPI is defined as 160 DPI, and the Pine 2-inch screen is 320 pixels. Copy
earthtime480 into the HDPI folder and earthtime960 into the XHDPI folder.