To-do item menus
Let's augment the Today Todo
app with a powerful design metaphor—navigation drawers.
The first thing we need to do is add a Todos
action to our arrays.xml
file, as follows:
<?xml version="1.0" encoding="utf-8"?> <resources> <string-array name="actions"> <item>Day of Year</item> <item>On this day...</item> <item>Todos</item> <item>Step Count</item> </string-array> </resources>
This is how it shows up on the list menus. Go ahead and click on the Todos
menu item and we'll interact with the items in the following sections:
Next, we will implement a menu for our Todo
app using the WearableNavigationDrawer
component from the Android Wear API. The menu will let us choose a different view (tab) corresponding to the type of to-do item (for example, home, work, and so on) and list to-do items of that type when the drawer tab is selected.
About the navigation drawer
Navigation drawer...