Advertisement
Guest User

Untitled

a guest
May 4th, 2016
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.09 KB | None | 0 0
  1. <android.support.v4.widget.DrawerLayout
  2. xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. android:id="@+id/drawer"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. android:fitsSystemWindows="true">
  8.  
  9. <LinearLayout
  10. android:layout_width="match_parent"
  11. android:layout_height="match_parent"
  12. android:orientation="vertical">
  13.  
  14. <android.support.design.widget.AppBarLayout
  15. android:id="@+id/appbar"
  16. android:layout_width="match_parent"
  17. android:layout_height="wrap_content">
  18.  
  19. <android.support.v7.widget.Toolbar
  20. android:id="@+id/toolbar"
  21. android:layout_width="match_parent"
  22. android:layout_height="?attr/actionBarSize"
  23. android:background="@color/colorPrimary"
  24. android:title="@string/app_name"
  25. app:layout_scrollFlags="scroll|enterAlways"/>
  26. </android.support.design.widget.AppBarLayout>
  27.  
  28. <FrameLayout
  29. android:id="@+id/fragmentContainer"
  30. android:layout_width="match_parent"
  31. android:layout_height="match_parent"
  32. />
  33.  
  34. </LinearLayout>
  35.  
  36.  
  37. <android.support.design.widget.NavigationView
  38. android:id="@+id/drawerNavigationView"
  39. android:layout_width="wrap_content"
  40. android:layout_height="match_parent"
  41. android:layout_gravity="start"
  42. app:itemTextColor="@color/navview_text_color"
  43. app:menu="@menu/home_drawer_items_menu"/>
  44. </android.support.v4.widget.DrawerLayout>
  45.  
  46. <android.support.design.widget.CoordinatorLayout
  47. xmlns:android="http://schemas.android.com/apk/res/android"
  48. xmlns:app="http://schemas.android.com/apk/res-auto"
  49. android:layout_width="match_parent"
  50. android:layout_height="match_parent">
  51.  
  52. <android.support.design.widget.AppBarLayout
  53. android:id="@+id/appbar"
  54. android:layout_width="match_parent"
  55. android:layout_height="wrap_content">
  56.  
  57. <android.support.design.widget.TabLayout
  58. android:id="@+id/tabs"
  59. android:layout_width="match_parent"
  60. android:layout_height="wrap_content"
  61. app:layout_scrollFlags="scroll|enterAlways"/>
  62.  
  63. </android.support.design.widget.AppBarLayout>
  64.  
  65. <android.support.v4.view.ViewPager
  66. android:id="@+id/viewPager"
  67. android:layout_width="match_parent"
  68. android:layout_height="match_parent"
  69. android:background="@android:color/black"
  70. app:layout_behavior="@string/appbar_scrolling_view_behavior"/>
  71.  
  72. <android.support.design.widget.FloatingActionButton
  73. android:id="@+id/fab"
  74. android:layout_width="wrap_content"
  75. android:layout_height="wrap_content"
  76. android:layout_margin="@dimen/fab_margin"
  77. android:clickable="true"
  78. android:src="@drawable/ic_plus"
  79. android:tint="@android:color/white"
  80. app:elevation="5dp"
  81. app:layout_anchor="@id/viewPager"
  82. app:layout_anchorGravity="bottom|right|end"/>
  83. </android.support.design.widget.CoordinatorLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement