Guest User

Untitled

a guest
Sep 9th, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.09 KB | None | 0 0
  1. <RelativeLayout
  2. android:layout_width="match_parent"
  3. android:layout_height="match_parent">
  4. <android.support.design.widget.CoordinatorLayout
  5. xmlns:android="http://schemas.android.com/apk/res/android"
  6. xmlns:app="http://schemas.android.com/apk/res-auto"
  7. android:id="@+id/main_content"
  8. android:layout_width="match_parent"
  9. android:layout_height="match_parent"
  10. android:fitsSystemWindows="true"
  11. >
  12. <android.support.design.widget.AppBarLayout
  13. android:id="@+id/appbar"
  14. android:layout_width="match_parent"
  15. android:layout_height="115dp"
  16. android:background="@color/colorPrimaryDark"
  17. android:fitsSystemWindows="true"
  18. android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
  19. >
  20. <android.support.design.widget.CollapsingToolbarLayout
  21. android:id="@+id/collapsingToolbar"
  22. android:layout_width="match_parent"
  23. android:layout_height="match_parent"
  24. android:background="@color/colorPrimaryDark"
  25. android:fitsSystemWindows="true"
  26. app:expandedTitleMarginEnd="64dp"
  27. app:expandedTitleMarginStart="48dp"
  28. app:layout_scrollFlags="scroll|exitUntilCollapsed">
  29. <TextView
  30. android:layout_width="wrap_content"
  31. android:text="Dashboard"
  32. android:layout_marginTop="8dp"
  33. android:id="@+id/title"
  34. android:layout_marginLeft="50dp"
  35. android:textSize="20sp"
  36. android:textColor="@android:color/white"
  37. android:layout_height="wrap_content" />
  38. <ImageView
  39. android:layout_width="30dp"
  40. android:layout_height="30dp"
  41. android:layout_margin="8dp"
  42. android:layout_gravity="right"
  43. android:src="@drawable/ic_search_black_24dp"
  44. />
  45. <ImageView
  46. android:layout_width="30dp"
  47. android:layout_height="30dp"
  48. android:layout_margin="8dp"
  49. android:src="@drawable/ic_dehaze_black_24dp"
  50. />
  51. <android.support.v7.widget.Toolbar
  52. android:id="@+id/toolbar"
  53. android:layout_width="match_parent"
  54. android:layout_height="?attr/actionBarSize"
  55. app:layout_collapseMode="pin"
  56. android:background="@color/colorPrimaryDark"
  57. android:layout_gravity="bottom"
  58. app:popupTheme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
  59. <com.ogaclejapan.smarttablayout.SmartTabLayout
  60. android:id="@+id/tablayout"
  61. android:layout_width="match_parent"
  62. android:layout_height="48dp"
  63. app:stl_indicatorAlwaysInCenter="true"
  64. app:stl_indicatorWithoutPadding="false"
  65. app:stl_indicatorInFront="false"
  66. app:stl_indicatorInterpolation="smart"
  67. app:stl_indicatorGravity="bottom"
  68. app:stl_indicatorColor="#eff2f4"
  69. app:stl_indicatorThickness="4dp"
  70. app:stl_indicatorWidth="auto"
  71. app:stl_indicatorCornerRadius="2dp"
  72. app:stl_overlineColor="#4D000000"
  73. app:stl_overlineThickness="0dp"
  74. app:stl_underlineColor="#4D000000"
  75. app:stl_underlineThickness="1dp"
  76. app:stl_defaultTabBackground="?attr/selectableItemBackground"
  77. app:stl_defaultTabTextAllCaps="true"
  78. app:stl_defaultTabTextColor="#ffffff"
  79. app:stl_defaultTabTextSize="14sp"
  80. app:stl_defaultTabTextHorizontalPadding="16dp"
  81. app:stl_defaultTabTextMinWidth="0dp"
  82. app:stl_distributeEvenly="false"
  83. app:stl_clickable="true"
  84. app:stl_titleOffset="24dp"
  85. app:stl_drawDecorationAfterTab="false"
  86. />
  87. </android.support.v7.widget.Toolbar>
  88. </android.support.design.widget.CollapsingToolbarLayout>
  89. </android.support.design.widget.AppBarLayout>
  90. <android.support.v4.view.ViewPager
  91. android:layout_width="match_parent"
  92. app:layout_behavior="@string/appbar_scrolling_view_behavior"
  93. android:layout_height="wrap_content"
  94. android:id="@+id/viewpager" />
  95. </android.support.design.widget.CoordinatorLayout>
  96. <skrm.Fab
  97. android:id="@+id/fab"
  98. style="@style/Widget.MaterialSheetFab.Fab"
  99. android:layout_alignParentBottom="true"
  100. android:layout_alignParentEnd="true"
  101. />
  102. <com.gordonwong.materialsheetfab.DimOverlayFrameLayout
  103. android:id="@+id/overlay"
  104. android:layout_width="match_parent"
  105. android:layout_height="match_parent" />
  106. <io.codetail.widget.RevealLinearLayout
  107. android:layout_width="match_parent"
  108. android:layout_height="match_parent"
  109. android:gravity="end|bottom"
  110. android:orientation="vertical"
  111. >
  112. <android.support.v7.widget.CardView
  113. android:id="@+id/fab_sheet"
  114. style="@style/Widget.MaterialSheetFab.ToolBar">
  115. <LinearLayout
  116. android:layout_width="wrap_content"
  117. android:orientation="vertical"
  118. android:layout_height="wrap_content">
  119.  
  120. <TextView
  121. android:id="@+id/vertical"
  122. android:layout_marginTop="8dp"
  123. style="@style/TextAppearance.MaterialSheetFab.Sheet.Item"
  124. android:drawableStart="@drawable/ic_action_name"
  125. android:text="Portraint" />
  126. <TextView
  127. android:id="@+id/horizontal"
  128. style="@style/TextAppearance.MaterialSheetFab.Sheet.Item"
  129. android:drawableStart="@drawable/land"
  130. android:text="Landscape" />
  131. <TextView
  132. android:id="@+id/selected"
  133. style="@style/TextAppearance.MaterialSheetFab.Sheet.Item"
  134. android:background="@color/colorPrimaryDark"
  135. android:textColor="#FFF"
  136. android:drawableStart="@drawable/both"
  137. android:text="Both" />
  138. </LinearLayout>
  139. </android.support.v7.widget.CardView>
  140. </io.codetail.widget.RevealLinearLayout>
Add Comment
Please, Sign In to add comment