tegarkurniawan

toolbar

Jan 24th, 2017
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.57 KB | None | 0 0
  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.  
  11.  
  12.  
  13. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  14. xmlns:tools="http://schemas.android.com/tools"
  15. android:id="@+id/activity_view"
  16. android:layout_width="match_parent"
  17. android:layout_height="match_parent"
  18. android:paddingBottom="@dimen/activity_vertical_margin"
  19. android:paddingLeft="@dimen/activity_horizontal_margin"
  20. android:paddingRight="@dimen/activity_horizontal_margin"
  21. android:paddingTop="@dimen/activity_vertical_margin"
  22. android:background="#E0E0E0"
  23. tools:context=".ViewActivity">
  24.  
  25. <ProgressBar
  26. android:id="@+id/progress_bar"
  27. android:layout_width="wrap_content"
  28. android:layout_height="wrap_content"
  29. android:layout_centerInParent="true" />
  30. <Button
  31. android:id="@+id/logout"
  32. android:layout_width="match_parent"
  33. android:layout_height="wrap_content"
  34. android:layout_below="@+id/toolbar"
  35. android:text="Logout"
  36. />
  37. <Button
  38. android:id="@+id/buttonLihat"
  39. android:layout_width="match_parent"
  40. android:layout_height="wrap_content"
  41. android:layout_below="@id/logout"
  42. android:text="@string/view"
  43. />
  44. <android.support.v7.widget.RecyclerView
  45. android:id="@+id/recyclerView"
  46. android:layout_width="match_parent"
  47. android:layout_height="match_parent"
  48. android:layout_below="@id/buttonLihat"
  49. />
  50.  
  51. </RelativeLayout>
  52. <include
  53. layout="@layout/app_bar_main"
  54. android:layout_width="match_parent"
  55. android:layout_height="match_parent" />
  56.  
  57.  
  58. <android.support.design.widget.NavigationView
  59. android:id="@+id/nav_view"
  60. android:layout_width="wrap_content"
  61. android:layout_height="match_parent"
  62. android:layout_gravity="start"
  63. android:fitsSystemWindows="true"
  64. app:headerLayout="@layout/nav_header_main"
  65. app:menu="@menu/activity_main_drawer" />
  66.  
  67. </android.support.v4.widget.DrawerLayout>
Advertisement
Add Comment
Please, Sign In to add comment