CHAPTER 15: Developing for Android Wearable Devices 575
Figure 15-28. Add a line of space under the
Figure 15-29. Configure an
Name the ImageView marsIcon using the android:id parameter. Add an
android:contentDescription parameter, as required by all ImageView classes and subclasses,
referencing marsClock. Add the required android:layout_width and android:layout_height
parameters, set to a wrap_content constant.
Finally, add an android:src parameter referencing the marsbutton source PNG32 image that you
copied over. The XML mark-up for this first
seen in Figure 15-29:
<ImageView android:id="@+id/marsIcon" android:contentDescription="@string/marsClock"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:src="@drawable/marsbutton" />