Advertisement
Guest User

Untitled

a guest
Apr 29th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.89 KB | None | 0 0
  1. <android.support.design.widget.CoordinatorLayout
  2. xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent">
  6.  
  7. <LinearLayout
  8. android:layout_width="match_parent"
  9. android:layout_height="match_parent"
  10. android:orientation="vertical">
  11.  
  12. <android.support.design.widget.AppBarLayout
  13. android:layout_width="match_parent"
  14. android:layout_height="wrap_content"
  15. android:id="@+id/appbarlayout">
  16. <android.support.v7.widget.Toolbar
  17. android:id="@+id/tool_bar"
  18. android:layout_width="match_parent"
  19. android:layout_height="50dp"
  20. android:background="@color/colorTeal200"
  21. app:popupTheme="@style/AppTheme"
  22. android:elevation="6dp"
  23. app:layout_scrollFlags="scroll|enterAlways"/>
  24.  
  25. <android.support.design.widget.TabLayout
  26. android:layout_width="match_parent"
  27. android:layout_height="52dp"
  28. app:tabGravity="fill"
  29. app:tabMode="fixed"
  30. android:layout_gravity="bottom"
  31. android:background="@color/colorText"
  32. app:tabIndicatorColor="@color/colorTeal500"
  33. android:id="@+id/tab_layout"/>
  34. </android.support.design.widget.AppBarLayout>
  35.  
  36. <android.support.v4.view.ViewPager
  37. android:id="@+id/view_pager"
  38. android:layout_width="match_parent"
  39. android:layout_height="match_parent"
  40. app:layout_behavior="@string/appbar_scrolling_view_behavior"/>
  41. </LinearLayout>
  42.  
  43. <android.support.design.widget.FloatingActionButton
  44. android:id="@+id/gallery_fab"
  45. android:layout_height="wrap_content"
  46. android:layout_width="wrap_content"
  47. android:layout_gravity="bottom|end"
  48. android:layout_marginRight="160dp"
  49. android:layout_marginBottom="16dp"
  50. android:src="@drawable/ic_photo_library_white_24px"
  51. app:backgroundTint="@color/colorAccent700"
  52. app:borderWidth="0dp"
  53. app:elevation="12dp"
  54. app:pressedTranslationZ="12dp"
  55. android:visibility="invisible"/>
  56.  
  57. <android.support.design.widget.FloatingActionButton
  58. android:id="@+id/camera_fab"
  59. android:layout_height="wrap_content"
  60. android:layout_width="wrap_content"
  61. android:layout_gravity="bottom|end"
  62. android:layout_marginRight="90dp"
  63. android:layout_marginBottom="16dp"
  64. android:src="@drawable/ic_camera_alt_white_24px"
  65. app:backgroundTint="@color/colorAccent700"
  66. app:borderWidth="0dp"
  67. app:elevation="12dp"
  68. app:pressedTranslationZ="12dp"
  69. android:visibility="invisible"/>
  70.  
  71. <android.support.design.widget.FloatingActionButton
  72. android:id="@+id/floating_button"
  73. android:layout_height="wrap_content"
  74. android:layout_width="wrap_content"
  75. android:layout_gravity="bottom|right"
  76. android:layout_margin="16dp"
  77. android:src="@drawable/ic_add_white_24px"
  78. app:backgroundTint="@color/colorAccent700"
  79. app:borderWidth="0dp"
  80. app:elevation="12dp"
  81. app:layout_behavior="com.draft.meal.testing.ScrollFABAction.ScrollOffBottomBehaviour"
  82. app:layout_anchorGravity="bottom|right|end"
  83. app:layout_anchor="@id/view_pager"/>
  84.  
  85. <android.support.v4.widget.DrawerLayout
  86. xmlns:android="http://schemas.android.com/apk/res/android"
  87. xmlns:app="http://schemas.android.com/apk/res-auto"
  88. xmlns:tools="http://schemas.android.com/tools"
  89. android:layout_width="match_parent"
  90. android:layout_height="fill_parent"
  91. android:id="@+id/nav_drawer"
  92. android:layout_alignParentRight="true"
  93. android:fitsSystemWindows="true"
  94. android:elevation="7dp"
  95. tools:openDrawer="end"
  96. android:gravity="left"
  97. android:layout_gravity="end">
  98.  
  99. <include layout="@layout/skeleton_view"/>
  100.  
  101. <android.support.design.widget.NavigationView
  102. android:layout_width="match_parent"
  103. android:layout_height="match_parent"
  104. android:id="@+id/navigation_view"
  105. android:layout_gravity="end"
  106. android:gravity="left"
  107. app:headerLayout="@layout/navigation_header"
  108. app:elevation="4dp"
  109. app:menu="@menu/drawer">
  110. </android.support.design.widget.NavigationView>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement