You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

activity_main.xml 1.2KB

12345678910111213141516171819202122232425
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. xmlns:tools="http://schemas.android.com/tools"
  5. android:id="@+id/drawer_layout"
  6. android:layout_width="match_parent"
  7. android:layout_height="match_parent"
  8. android:fitsSystemWindows="true"
  9. tools:openDrawer="start">
  10. <include
  11. layout="@layout/app_bar_main"
  12. android:layout_width="match_parent"
  13. android:layout_height="match_parent" />
  14. <android.support.design.widget.NavigationView
  15. android:id="@+id/nav_view"
  16. android:layout_width="wrap_content"
  17. android:layout_height="match_parent"
  18. android:layout_gravity="start"
  19. android:fitsSystemWindows="true"
  20. app:headerLayout="@layout/nav_header_main"
  21. app:menu="@menu/activity_main_drawer"/>
  22. </android.support.v4.widget.DrawerLayout>