Guest User

Untitled

a guest
Jul 3rd, 2019
32
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <android.support.design.widget.CoordinatorLayout 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. xmlns:tools="http://schemas.android.com/tools">
  7.  
  8. <android.support.design.widget.AppBarLayout
  9. android:id="@+id/flexible.example.appbar"
  10. android:layout_width="match_parent"
  11. android:layout_height="wrap_content"
  12. android:gravity="top"
  13. android:background="@android:color/transparent"
  14. >
  15.  
  16. <android.support.design.widget.CollapsingToolbarLayout
  17. android:id="@+id/flexible.example.collapsing"
  18. android:layout_width="match_parent"
  19. android:layout_height="@dimen/_190sdp"
  20. android:fitsSystemWindows="true"
  21. app:title="This is just dummy text"
  22. app:contentScrim="@android:color/transparent"
  23. app:statusBarScrim="@android:color/transparent"
  24. app:collapsedTitleGravity="center_horizontal"
  25. app:expandedTitleGravity="bottom|center_horizontal"
  26. app:layout_scrollFlags="scroll|exitUntilCollapsed|snap">
  27.  
  28. <ImageView
  29. android:id="@+id/backdrop"
  30. android:layout_width="match_parent"
  31. android:layout_height="match_parent"
  32. android:fitsSystemWindows="true"
  33. android:scaleType="centerCrop"
  34. android:src="@mipmap/dj_man"
  35. app:layout_collapseMode="parallax" />
  36.  
  37. <android.support.v7.widget.Toolbar
  38. android:id="@+id/flexible.example.toolbar"
  39. android:layout_width="match_parent"
  40. android:layout_height="?attr/actionBarSize"
  41. app:layout_collapseMode="pin"
  42.  
  43. style="@style/ToolBarWithNavigationBack2">
  44.  
  45. <ImageView
  46. android:id="@+id/toolbar_logo"
  47. android:layout_width="40dp"
  48. android:layout_height="wrap_content"
  49. android:visibility="gone"
  50. android:tint="@color/black"
  51. android:layout_gravity="center|left"
  52. android:adjustViewBounds="true"
  53. android:src="@mipmap/arrow_up"/>
  54. <ImageView
  55. android:layout_width="40dp"
  56. android:layout_height="wrap_content"
  57. android:visibility="invisible"
  58. android:tint="@color/black"
  59. android:layout_gravity="center|right"
  60. android:adjustViewBounds="true"
  61. android:src="@mipmap/arrow_up"/>
  62.  
  63. <ImageView
  64. android:layout_width="40dp"
  65. android:layout_height="wrap_content"
  66. android:visibility="invisible"
  67. android:tint="@color/black"
  68. android:layout_gravity="center|right"
  69. android:adjustViewBounds="true"
  70. android:src="@mipmap/arrow_up"/>
  71.  
  72. </android.support.v7.widget.Toolbar>
  73.  
  74. <RelativeLayout
  75. android:layout_width="match_parent"
  76. android:layout_height="match_parent"
  77. android:layout_below="@+id/toolbar"
  78. android:layout_marginTop="?attr/actionBarSize"
  79. android:fitsSystemWindows="true"
  80. android:gravity="bottom|center"
  81. android:scaleType="centerCrop">
  82.  
  83.  
  84. <LinearLayout
  85. android:layout_width="match_parent"
  86. android:orientation="horizontal"
  87. android:gravity="center"
  88. android:layout_marginTop="@dimen/_10sdp"
  89. android:layout_height="wrap_content">
  90.  
  91.  
  92. <ImageView
  93. android:layout_toRightOf="@+id/temp_tv"
  94. android:layout_width="30dp"
  95. android:layout_height="30dp"
  96. android:visibility="gone"
  97. android:adjustViewBounds="true"
  98. android:src="@mipmap/heart_"/>
  99.  
  100.  
  101. <TextView
  102. android:id="@+id/temp_tv"
  103. android:layout_width="wrap_content"
  104. android:layout_height="@dimen/_30sdp"
  105. android:gravity="center|bottom"
  106. android:text="Subscription"
  107. android:textAllCaps="true"
  108. android:textColor="@color/black"
  109. android:textSize="@dimen/_12sdp" />
  110.  
  111. </LinearLayout>
  112.  
  113. </RelativeLayout>
  114. </android.support.design.widget.CollapsingToolbarLayout>
  115.  
  116. <LinearLayout
  117. android:layout_width="match_parent"
  118. android:gravity="center"
  119. android:layout_height="@dimen/_30sdp">
  120.  
  121. <ImageView
  122. android:layout_toRightOf="@+id/temp_tv"
  123. android:layout_width="@dimen/_25sdp"
  124. android:layout_margin="@dimen/_5sdp"
  125. android:layout_height="@dimen/_25sdp"
  126. android:visibility="visible"
  127. android:layout_gravity="center"
  128. android:adjustViewBounds="true"
  129. android:src="@mipmap/heart_"/>
  130.  
  131. </LinearLayout>
  132.  
  133. <View
  134. android:layout_width="match_parent"
  135. android:background="@color/colorPrimaryDark"
  136. android:layout_height="1dp"/>
  137.  
  138. </android.support.design.widget.AppBarLayout>
  139. app:layout_anchor="@id/flexible.example.appbar"
  140. <android.support.v7.widget.RecyclerView
  141. android:id="@+id/list"
  142. android:layout_width="match_parent"
  143. android:layout_height="wrap_content"
  144. android:background="@mipmap/dj_man"
  145. android:fillViewport="true"
  146. android:fitsSystemWindows="true"
  147. app:layoutManager="LinearLayoutManager"
  148. app:layout_behavior="@string/appbar_scrolling_view_behavior"
  149. tools:listitem="@layout/fragment_song" />
  150.  
  151. </android.support.design.widget.CoordinatorLayout>
RAW Paste Data