Implementing a navigation drawer involves creating a drawer layout using the WearableDrawerLayout
class and adding to it a view that contains the main content of the screen. This primary view has child views that contain the contents of the drawer. The TodosActivity
class will control navigation drawers and initialize drawer layouts:
public class TodosActivity extends WearableActivity implements WearableActionDrawer.OnMenuItemClickListener { private static final String TAG = TodosActivity.class.getName(); private WearableDrawerLayout mWearableDrawerLayout; private WearableNavigationDrawer mWearableNavigationDrawer; private WearableActionDrawer mWearableActionDrawer; private List<TodoItemType> todoItemTypes = Arrays.asList(TodoItemType.HOME, TodoItemType.WORK); private TodoItemType mSelectedTodoItemType; private TodoItemTypeFragment mTodoItemTypeFragment; @Override protected void onCreate(Bundle savedInstanceState) { super...