A number of resources can be set to change the look and feel of each row; consult the resource * file {@code wcl_list.xml} for details (to customize these values, copy this resource to your * client application and change the values as needed). * *
To be notified when a row is clicked on, implement * {@link WearableListView.ClickListener#onClick(WearableListView.ViewHolder)}: *
* public void onClick(WearableListView.ViewHolder v) { * Integer position = (Integer) v.itemView.getTag(); * // use this data to complete some action ... * } *
The same method can also be used to make the rows dynamically selectable; you would * need to add the following snippet to the * {@link WearableListView.ClickListener#onClick(WearableListView.ViewHolder)}: *
* public void onClick(WearableListView.ViewHolder v) { * Integer tag = (Integer) v.itemView.getTag(); * adapter.setChecked(tag, WearableListConfig.NO_SELECTION); * adapter.notifyDataSetChanged(); * // use this selection to complete some action ... * } *