Guest User

Untitled

a guest
Feb 6th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.32 KB | None | 0 0
  1. <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2. xmlns:app="http://schemas.android.com/apk/res-auto"
  3. android:id="@+id/coordinatorLayout"
  4. android:layout_width="fill_parent"
  5. android:layout_height="fill_parent">
  6.  
  7. <!-- AppBar Layout -->
  8. <android.support.design.widget.AppBarLayout
  9. android:id="@+id/appBarLayout"
  10. android:layout_width="fill_parent"
  11. android:layout_height="wrap_content"
  12. android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
  13.  
  14. <android.support.v7.widget.Toolbar
  15. android:id="@+id/toolbar"
  16. android:layout_width="fill_parent"
  17. android:layout_height="?attr/actionBarSize"
  18. android:background="?attr/colorPrimary"
  19. app:layout_scrollFlags="scroll|enterAlways"
  20. app:popupTheme="@style/ThemeOverlay.AppCompat.Light" >
  21. <Button
  22. android:id="@+id/filter_location"
  23. android:layout_width="wrap_content"
  24. android:layout_height="wrap_content"
  25. style="?android:attr/borderlessButtonStyle"
  26. android:drawableRight="@drawable/ic_filter_list_white_24dp"
  27. android:layout_gravity="right"
  28. />
  29. </android.support.v7.widget.Toolbar>
  30. <!-- Tab Layout for creating tabs -->
  31. <android.support.design.widget.TabLayout
  32. android:id="@+id/tabLayout"
  33. android:layout_width="fill_parent"
  34. android:layout_height="wrap_content" />
  35. </android.support.design.widget.AppBarLayout>
  36. <!-- Helps handing the Fragments for each Tab -->
  37. <android.support.v4.view.ViewPager
  38. android:id="@+id/viewPager"
  39. android:layout_width="fill_parent"
  40. android:layout_height="fill_parent"
  41. app:layout_behavior="@string/appbar_scrolling_view_behavior" />
  42.  
  43. <android.support.design.widget.FloatingActionButton
  44. android:id="@+id/float_search"
  45. android:layout_width="wrap_content"
  46. android:layout_height="wrap_content"
  47. android:layout_gravity="bottom|end"
  48. android:layout_marginBottom="70dp"
  49. android:src="@android:drawable/ic_menu_search" />
  50.  
  51. <android.support.design.widget.BottomNavigationView
  52. android:id="@+id/bottom_navigation"
  53. android:layout_width="match_parent"
  54. android:layout_height="wrap_content"
  55. android:layout_gravity="bottom"
  56. android:background="@color/colorPrimary"
  57. app:itemBackground="@color/colorPrimary"
  58. app:itemIconTint="@color/windowBackground"
  59. app:itemTextColor="@color/windowBackground"
  60. app:menu="@menu/bottom_navigation_main" />
  61. </android.support.design.widget.CoordinatorLayout>
  62.  
  63. <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
  64. xmlns:app="http://schemas.android.com/apk/res-auto"
  65. android:id="@+id/coordinatorLayout"
  66. android:layout_width="fill_parent"
  67. android:layout_height="fill_parent">
  68.  
  69. <!-- AppBar Layout -->
  70. <android.support.design.widget.AppBarLayout
  71. android:id="@+id/appBarLayout"
  72. android:layout_width="fill_parent"
  73. android:layout_height="wrap_content"
  74. android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
  75.  
  76. <android.support.v7.widget.Toolbar
  77. android:id="@+id/toolbar"
  78. android:layout_width="fill_parent"
  79. android:layout_height="?attr/actionBarSize"
  80. android:background="?attr/colorPrimary"
  81. app:layout_scrollFlags="scroll|enterAlways"
  82. app:popupTheme="@style/ThemeOverlay.AppCompat.Light">
  83.  
  84. <Button
  85. android:id="@+id/filter_location"
  86. style="?android:attr/borderlessButtonStyle"
  87. android:layout_width="wrap_content"
  88. android:layout_height="wrap_content"
  89. android:layout_gravity="right"
  90. android:drawableRight="@drawable/border" />
  91. </android.support.v7.widget.Toolbar>
  92. <!-- Tab Layout for creating tabs -->
  93. <android.support.design.widget.TabLayout
  94. android:id="@+id/tabLayout"
  95. android:layout_width="fill_parent"
  96. android:layout_height="wrap_content" />
  97. </android.support.design.widget.AppBarLayout>
  98. <!-- Helps handing the Fragments for each Tab -->
  99. <android.support.v4.view.ViewPager
  100. android:id="@+id/viewPager"
  101. android:layout_width="fill_parent"
  102. android:layout_height="354dp"
  103. app:layout_behavior="@string/appbar_scrolling_view_behavior" />
  104.  
  105. <android.support.design.widget.FloatingActionButton
  106. android:id="@+id/float_search"
  107. android:layout_width="wrap_content"
  108. android:layout_height="wrap_content"
  109. android:layout_gravity="bottom|end"
  110. android:layout_marginBottom="70dp"
  111. android:src="@android:drawable/ic_menu_search" />
  112.  
  113. <android.support.design.widget.BottomNavigationView
  114. android:id="@+id/bottom_navigation"
  115. android:layout_width="match_parent"
  116. android:layout_height="wrap_content"
  117. android:layout_gravity="bottom"
  118. android:background="@color/colorPrimary"
  119. app:itemBackground="@color/colorPrimary"
  120. app:itemIconTint="@color/colorAccent"
  121. app:itemTextColor="@color/colorPrimaryDark" />
  122. </android.support.design.widget.CoordinatorLayout>
  123.  
  124. app:layout_anchor="@+id/viewPager"
  125. app:layout_anchorGravity="bottom"
  126.  
  127. android:layout_below="@+id/bottom_navigation"
  128.  
  129. <?xml version="1.0" encoding="utf-8"?>
  130.  
  131. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  132. xmlns:app="http://schemas.android.com/apk/res-auto"
  133. android:layout_width="match_parent"
  134. android:layout_height="match_parent"
  135. android:orientation="vertical">
  136.  
  137. <android.support.design.widget.CoordinatorLayout
  138. xmlns:android="http://schemas.android.com/apk/res/android"
  139. android:id="@+id/coordinatorLayout"
  140. android:layout_width="fill_parent"
  141. android:layout_height="0dp"
  142. android:layout_weight="1">
  143.  
  144. <!-- AppBar Layout -->
  145. <android.support.design.widget.AppBarLayout
  146. android:id="@+id/appBarLayout"
  147. android:layout_width="fill_parent"
  148. android:layout_height="wrap_content"
  149. android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
  150.  
  151. <android.support.v7.widget.Toolbar
  152. android:id="@+id/toolbar"
  153. android:layout_width="fill_parent"
  154. android:layout_height="?attr/actionBarSize"
  155. android:background="?attr/colorPrimary"
  156. app:layout_scrollFlags="scroll|enterAlways"
  157. app:popupTheme="@style/ThemeOverlay.AppCompat.Light" >
  158. <Button
  159. android:id="@+id/filter_location"
  160. android:layout_width="wrap_content"
  161. android:layout_height="wrap_content"
  162. style="?android:attr/borderlessButtonStyle"
  163. android:drawableRight="@drawable/ic_filter_list_white_24dp"
  164. android:layout_gravity="right"
  165. />
  166. </android.support.v7.widget.Toolbar>
  167. <!-- Tab Layout for creating tabs -->
  168. <android.support.design.widget.TabLayout
  169. android:id="@+id/tabLayout"
  170. android:layout_width="fill_parent"
  171. android:layout_height="wrap_content" />
  172. </android.support.design.widget.AppBarLayout>
  173. <!-- Helps handing the Fragments for each Tab -->
  174. <android.support.v4.view.ViewPager
  175. android:id="@+id/viewPager"
  176. android:layout_width="fill_parent"
  177. android:layout_height="fill_parent"
  178. app:layout_behavior="@string/appbar_scrolling_view_behavior" />
  179.  
  180. <android.support.design.widget.FloatingActionButton
  181. android:id="@+id/float_search"
  182. android:layout_width="wrap_content"
  183. android:layout_height="wrap_content"
  184. android:layout_gravity="bottom|end"
  185. android:layout_marginBottom="40dp"
  186. android:src="@android:drawable/ic_menu_search" />
  187.  
  188. </android.support.design.widget.CoordinatorLayout>
  189.  
  190. <android.support.design.widget.CoordinatorLayout
  191. android:layout_width="match_parent"
  192. android:layout_height="wrap_content">
  193.  
  194. <android.support.design.widget.BottomNavigationView
  195. android:id="@+id/navigation"
  196. android:layout_width="match_parent"
  197. android:layout_height="wrap_content"
  198. android:layout_gravity="bottom"
  199. android:background="@color/colorPrimary"
  200. app:itemBackground="@color/colorPrimary"
  201. app:menu="@menu/bottom_navigation_main" />
  202.  
  203. </android.support.design.widget.CoordinatorLayout>
  204.  
  205. </LinearLayout>
Add Comment
Please, Sign In to add comment