activity_main.xml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <android.support.v4.widget.DrawerLayout
  3. android:id="@+id/drawer"
  4. xmlns:android="http://schemas.android.com/apk/res/android"
  5. xmlns:app="http://schemas.android.com/apk/res-auto"
  6. android:layout_width="match_parent"
  7. android:layout_height="match_parent"
  8. android:fitsSystemWindows="true">
  9. <RelativeLayout
  10. android:id="@+id/main_content"
  11. android:layout_width="match_parent"
  12. android:layout_height="match_parent">
  13. <android.support.design.widget.AppBarLayout
  14. android:id="@+id/appbar"
  15. android:layout_width="match_parent"
  16. android:layout_height="wrap_content">
  17. <include layout="@layout/toolbar"/>
  18. </android.support.design.widget.AppBarLayout>
  19. <FrameLayout
  20. android:id="@+id/frame_container"
  21. android:layout_width="match_parent"
  22. android:layout_height="match_parent"
  23. android:layout_below="@id/appbar">
  24. <RelativeLayout
  25. android:id="@+id/information_layout"
  26. android:layout_width="wrap_content"
  27. android:layout_height="wrap_content"
  28. android:layout_gravity="center">
  29. <android.support.v7.widget.AppCompatImageView
  30. android:id="@+id/image_view"
  31. android:layout_width="128dp"
  32. android:layout_height="128dp"
  33. android:layout_centerHorizontal="true"/>
  34. <TextView
  35. android:id="@+id/text_label"
  36. style="@style/TextAppearance.Medium.Body2.Hint"
  37. android:layout_width="wrap_content"
  38. android:layout_height="wrap_content"
  39. android:layout_below="@+id/image_view"
  40. android:layout_centerHorizontal="true"/>
  41. </RelativeLayout>
  42. </FrameLayout>
  43. </RelativeLayout>
  44. <android.support.design.widget.NavigationView
  45. android:id="@+id/nav_view"
  46. android:layout_width="wrap_content"
  47. android:layout_height="match_parent"
  48. android:layout_gravity="start"
  49. android:fitsSystemWindows="true"
  50. android:theme="?attr/navigation_view_theme"
  51. app:headerLayout="@layout/navigation_header"
  52. app:menu="@menu/menu_navigation"/>
  53. </android.support.v4.widget.DrawerLayout>