Guest User

Untitled

a guest
Oct 19th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.71 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. <android.support.design.widget.AppBarLayout
  8. android:layout_width="match_parent"
  9. android:layout_height="wrap_content"
  10. android:theme="@style/ThemeOverlay.AppCompat.Light">
  11.  
  12. <include layout="@layout/toolbar"/>
  13.  
  14. <android.support.design.widget.TabLayout
  15. android:id="@+id/tablayout"
  16. android:layout_width="match_parent"
  17. android:layout_height="wrap_content"
  18. app:tabGravity="fill"
  19. app:tabTextColor="@android:color/white"
  20. app:tabSelectedTextColor="@android:color/white"
  21. app:tabBackground="@drawable/tab_color_background"
  22. app:tabIndicatorColor="#ffffff"
  23. app:tabIndicatorHeight="4dp"
  24. app:tabMode="fixed" />
  25.  
  26. </android.support.design.widget.AppBarLayout>
  27.  
  28. <android.support.v4.view.ViewPager
  29. android:id="@+id/viewpager"
  30. android:gravity="center"
  31. app:layout_behavior="@string/appbar_scrolling_view_behavior"
  32. android:layout_width="match_parent"
  33. android:layout_height="match_parent" />
  34.  
  35. <android.support.design.widget.FloatingActionButton
  36. android:id="@+id/fabvptl"
  37. android:layout_width="wrap_content"
  38. android:layout_height="wrap_content"
  39. android:layout_gravity="bottom|left"
  40. android:clickable="true"
  41. app:elevation="10dp"
  42. android:layout_margin="10dp"
  43. app:backgroundTint="#D30A27"
  44. android:src="@drawable/fabrandom"
  45. />
  46.  
  47. </android.support.design.widget.CoordinatorLayout>
  48.  
  49. <android.support.v4.widget.NestedScrollView
  50. xmlns:android="http://schemas.android.com/apk/res/android"
  51. xmlns:app="http://schemas.android.com/apk/res-auto"
  52. android:layout_width="match_parent"
  53. android:layout_height="match_parent">
  54.  
  55. <RelativeLayout
  56. xmlns:android="http://schemas.android.com/apk/res/android"
  57. android:layout_width="match_parent"
  58. android:layout_height="match_parent"
  59. android:gravity="center"
  60. android:orientation="vertical">
  61.  
  62. <TextView
  63. android:layout_height="wrap_content"
  64. android:layout_width="wrap_content"
  65. android:text="1"
  66. android:id="@+id/squaremask"
  67. android:background="#D52115"
  68. android:textColor="#FFFFFF"
  69. android:textStyle="bold"
  70. android:layout_centerInParent="true"
  71. android:gravity="center"
  72. android:textSize="80sp"
  73. android:padding="50dp"/>
  74.  
  75. </RelativeLayout>
  76. </android.support.v4.widget.NestedScrollView>
  77.  
  78. android:gravity="center"
  79.  
  80. android:layout_gravity="center"
  81.  
  82. android:orientation="vertical"
Add Comment
Please, Sign In to add comment