Here is an example of how this can be done: *
* public class MyListActivity extends AbstractWearableListViewActivity { * * public void onItemClicked(int position, String value) { * Log.d(TAG, "Item clicked: position=" + position + ", value=" + value); * // use the selected value ... * } * * public WearableListConfig getConfiguration() { * String[] data = new String[] {"Row 1", "Row 2", "Row 3"}; * int[] icons = new int[] { R.drawable.icon1, R.drawable.icon2, R.drawable.icon3}; * WearableListConfig listConfig = new WearableListConfig.Builder(data) * .setIcons(icons) * .setCheckable(true) * .build(); * return listConfig; * } * } *
* public WearableListConfig getConfiguration() { * String[] data = new String[] {"Row 1", "Row 2", "Row 3"}; * int[] icons = new int[] { R.drawable_row1, R.drawable.row2, R.drawable.row3}; * WearableListConfig listConfig = new WearableListConfig.Builder(data) * .setIcons(icons) * .setCheckable(true) * .build(); * return listConfig; * } *