Advertisement
Guest User

Untitled

a guest
Aug 21st, 2015
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.99 KB | None | 0 0
  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:id="@+id/main_content"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  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="@color/blue"
  22. app:expandedTitleMarginEnd="64dp"
  23. app:expandedTitleMarginStart="48dp"
  24. app:layout_scrollFlags="scroll|exitUntilCollapsed">
  25.  
  26.  
  27. <ImageView
  28. android:id="@+id/backdrop"
  29. android:layout_width="match_parent"
  30. android:layout_height="match_parent"
  31. android:fitsSystemWindows="true"
  32. android:scaleType="centerCrop"
  33. app:layout_collapseMode="parallax" />
  34.  
  35. <android.support.v7.widget.Toolbar
  36. android:id="@+id/toolbar"
  37. android:layout_width="match_parent"
  38. android:layout_height="?attr/actionBarSize"
  39. app:layout_collapseMode="pin">
  40.  
  41.  
  42. </android.support.v7.widget.Toolbar>
  43.  
  44. </android.support.design.widget.CollapsingToolbarLayout>
  45.  
  46. </android.support.design.widget.AppBarLayout>
  47.  
  48. <android.support.v4.widget.NestedScrollView
  49. android:layout_width="match_parent"
  50. android:layout_height="match_parent"
  51. android:layout_marginTop="-30dp"
  52. app:layout_behavior="@string/appbar_scrolling_view_behavior">
  53.  
  54. <LinearLayout
  55. android:layout_width="match_parent"
  56. android:layout_height="match_parent"
  57. android:orientation="vertical">
  58.  
  59. <android.support.v7.widget.CardView
  60. android:layout_width="match_parent"
  61. android:layout_height="wrap_content"
  62. android:layout_margin="@dimen/card_margin">
  63.  
  64. <LinearLayout
  65. style="@style/Widget.CardContent"
  66. android:layout_width="match_parent"
  67. android:layout_height="wrap_content">
  68.  
  69. <TextView
  70. android:layout_width="match_parent"
  71. android:layout_height="wrap_content"
  72. android:text="Info"
  73. android:textAppearance="@style/TextAppearance.AppCompat.Title" />
  74.  
  75. <TextView
  76. android:layout_width="match_parent"
  77. android:layout_height="wrap_content"
  78. android:text="@string/cheese_ipsum" />
  79.  
  80. </LinearLayout>
  81.  
  82. </android.support.v7.widget.CardView>
  83.  
  84. <android.support.v7.widget.CardView
  85. android:layout_width="match_parent"
  86. android:layout_height="wrap_content"
  87. android:layout_marginBottom="@dimen/card_margin"
  88. android:layout_marginLeft="@dimen/card_margin"
  89. android:layout_marginRight="@dimen/card_margin">
  90.  
  91. <LinearLayout
  92. style="@style/Widget.CardContent"
  93. android:layout_width="match_parent"
  94. android:layout_height="wrap_content">
  95.  
  96. <TextView
  97. android:layout_width="match_parent"
  98. android:layout_height="wrap_content"
  99. android:text="Friends"
  100. android:textAppearance="@style/TextAppearance.AppCompat.Title" />
  101.  
  102. <TextView
  103. android:layout_width="match_parent"
  104. android:layout_height="wrap_content"
  105. android:text="@string/cheese_ipsum" />
  106.  
  107. </LinearLayout>
  108.  
  109. </android.support.v7.widget.CardView>
  110.  
  111. <android.support.v7.widget.CardView
  112. android:layout_width="match_parent"
  113. android:layout_height="wrap_content"
  114. android:layout_marginBottom="@dimen/card_margin"
  115. android:layout_marginLeft="@dimen/card_margin"
  116. android:layout_marginRight="@dimen/card_margin">
  117.  
  118. <LinearLayout
  119. style="@style/Widget.CardContent"
  120. android:layout_width="match_parent"
  121. android:layout_height="wrap_content">
  122.  
  123. <TextView
  124. android:layout_width="match_parent"
  125. android:layout_height="wrap_content"
  126. android:text="Related"
  127. android:textAppearance="@style/TextAppearance.AppCompat.Title" />
  128.  
  129. <TextView
  130. android:layout_width="match_parent"
  131. android:layout_height="wrap_content"
  132. android:text="@string/cheese_ipsum" />
  133.  
  134. </LinearLayout>
  135.  
  136. </android.support.v7.widget.CardView>
  137.  
  138. </LinearLayout>
  139.  
  140. </android.support.v4.widget.NestedScrollView>
  141.  
  142. <android.support.design.widget.FloatingActionButton
  143. android:id="@+id/fab"
  144. android:layout_width="wrap_content"
  145. android:layout_height="wrap_content"
  146. android:layout_gravity="end|bottom"
  147. android:layout_margin="@dimen/fab_margin"
  148. android:src="@drawable/ic_action_search" />
  149.  
  150. </android.support.design.widget.CoordinatorLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement