The WearableListView
component is used to display a list of available actions in the app, whereas the WearableListItemLayout
component is used to style or layout components in an individual list item.
In this specific case, we have ImageView
and TextView
tags. Note the usage of android:src="@drawable/wl_circle"
line. It is essentially a drawable file available in the res/drawable/wl_circle.xml
directory.
The TextView
tag is used to display individual action strings that come from the arrays.xml
file:
<com.siddique.androidwear.today.WearableListItemLayout xmlns:android="http://schemas.android.com/apk/res/android" android:gravity="center_vertical" android:layout_width="match_parent" android:layout_height="80dp"> <ImageView android:id="@+id/circle" android:layout_height="25dp" android:layout_margin="16dp" android:layout_width="25dp" android:src="@drawable/wl_circle"/> <TextView android:id="@+id/name" android:gravity...