docs: Update samples prebuilts for mnc-docs

Change-Id: I7175f178f95d76d9056d8e87b5a96700e3c9309c
This commit is contained in:
Trevor Johns
2016-06-14 16:42:16 -07:00
parent 8e7e496ae9
commit 08f72b4693
2 changed files with 5 additions and 4 deletions

View File

@@ -17,6 +17,7 @@
<android.support.wearable.view.drawer.WearableDrawerLayout
android:id="@+id/drawer_layout"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
@@ -38,6 +39,7 @@
android:id="@+id/bottom_action_drawer"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:action_menu="@menu/action_drawer_menu"
android:background="@color/grey"/>
</android.support.wearable.view.drawer.WearableDrawerLayout>

View File

@@ -85,17 +85,16 @@ public class MainActivity extends WearableActivity implements
mWearableNavigationDrawer =
(WearableNavigationDrawer) findViewById(R.id.top_navigation_drawer);
mWearableNavigationDrawer.setAdapter(new NavigationAdapter(this));
// Peeks Navigation drawer on the top.
mWearableDrawerLayout.peekDrawer(Gravity.TOP);
// Bottom Action Drawer
mWearableActionDrawer =
(WearableActionDrawer) findViewById(R.id.bottom_action_drawer);
// Populate Action Drawer Menu
Menu menu = mWearableActionDrawer.getMenu();
MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.action_drawer_menu, menu);
mWearableActionDrawer.setOnMenuItemClickListener(this);
// Peeks action drawer on the bottom.
mWearableDrawerLayout.peekDrawer(Gravity.BOTTOM);