Navigation adapter controls what's shown in a navigational state. We implement the WearableNavigationDrawerAdapter
class to populate the contents of the navigation drawer:
private final class NavigationAdapter extends WearableNavigationDrawer.WearableNavigationDrawerAdapter { private final Context mContext; public NavigationAdapter(Context context) { mContext = context; } @Override public int getCount() { return todoItemTypes.size(); } @Override public void onItemSelected(int position) { Log.d(TAG, "WearableNavigationDrawerAdapter.onItemSelected(): " + position); mSelectedTodoItemType = todoItemTypes.get(position); String selectedTodoImage = mSelectedTodoItemType.getBackgroundImage(); int drawableId = getResources().getIdentifier(selectedTodoImage, "drawable", getPackageName()); mTodoItemTypeFragment.updateFragment(mSelectedTodoItemType); } @Override public String getItemText...