Advertisement
Guest User

Untitled

a guest
Dec 18th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.34 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/main_content"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent"
  6. android:background="@android:color/white"
  7. android:fitsSystemWindows="true">
  8.  
  9. <android.support.design.widget.AppBarLayout
  10. android:id="@+id/appbar"
  11. android:layout_width="match_parent"
  12. android:layout_height="@dimen/detail_backdrop_height"
  13. android:fitsSystemWindows="true"
  14. android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
  15.  
  16. <android.support.design.widget.CollapsingToolbarLayout
  17. android:id="@+id/collapsing_toolbar"
  18. android:layout_width="match_parent"
  19. android:layout_height="match_parent"
  20. android:fitsSystemWindows="true"
  21. app:contentScrim="?attr/colorPrimary"
  22. app:expandedTitleMarginEnd="64dp"
  23. app:expandedTitleMarginStart="48dp"
  24. app:expandedTitleTextAppearance="@android:color/transparent"
  25. app:layout_scrollFlags="scroll|exitUntilCollapsed">
  26.  
  27. <RelativeLayout
  28. android:layout_width="wrap_content"
  29. android:layout_height="wrap_content">
  30.  
  31. <ImageView
  32. android:id="@+id/backdrop"
  33. android:layout_width="match_parent"
  34. android:layout_height="match_parent"
  35. android:fitsSystemWindows="true"
  36. android:scaleType="centerCrop"
  37. app:layout_collapseMode="parallax" />
  38.  
  39. <LinearLayout
  40. android:layout_width="wrap_content"
  41. android:layout_height="wrap_content"
  42. android:layout_centerInParent="true"
  43. android:gravity="center_horizontal"
  44. android:orientation="vertical">
  45.  
  46. <TextView
  47. android:id="@+id/love_music"
  48. android:layout_width="wrap_content"
  49. android:layout_height="wrap_content"
  50. android:text="@string/backdrop_title"
  51. android:textColor="@android:color/white"
  52. android:textSize="@dimen/backdrop_title" />
  53.  
  54. <TextView
  55. android:layout_width="wrap_content"
  56. android:layout_height="wrap_content"
  57. android:text="@string/backdrop_subtitle"
  58. android:textColor="@android:color/white"
  59. android:textSize="@dimen/backdrop_subtitle" />
  60.  
  61. </LinearLayout>
  62. </RelativeLayout>
  63.  
  64. <android.support.v7.widget.Toolbar
  65. android:id="@+id/toolbar"
  66. android:layout_width="match_parent"
  67. android:layout_height="?attr/actionBarSize"
  68. app:layout_collapseMode="pin"
  69. app:popupTheme="@style/ThemeOverlay.AppCompat.Light" />
  70.  
  71. </android.support.design.widget.CollapsingToolbarLayout>
  72.  
  73. </android.support.design.widget.AppBarLayout>
  74.  
  75. <include layout="@layout/content_card" />
  76.  
  77. </android.support.design.widget.CoordinatorLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement