Advertisement
Guest User

Untitled

a guest
Jun 18th, 2015
370
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.13 KB | None | 0 0
  1. <android.support.design.widget.AppBarLayout
  2. android:id="@+id/appbar"
  3. android:layout_width="match_parent"
  4. android:layout_height="@dimen/detail_backdrop_height"
  5. android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
  6. android:fitsSystemWindows="true">
  7.  
  8. <android.support.design.widget.CollapsingToolbarLayout
  9. android:id="@+id/collapsing_toolbar"
  10. android:layout_width="match_parent"
  11. android:layout_height="match_parent"
  12. app:layout_scrollFlags="scroll|enterAlwaysCollapsed"
  13. android:fitsSystemWindows="true"
  14. android:minHeight="?attr/actionBarSize"
  15. app:contentScrim="?attr/colorPrimary"
  16. app:expandedTitleMarginStart="48dp"
  17. app:expandedTitleMarginEnd="64dp">
  18.  
  19. <ImageView
  20. android:id="@+id/backdrop"
  21. android:layout_width="match_parent"
  22. android:layout_height="match_parent"
  23. android:scaleType="centerCrop"
  24. android:fitsSystemWindows="true"
  25. app:layout_collapseMode="parallax" />
  26.  
  27. <android.support.v7.widget.Toolbar
  28. android:id="@+id/toolbar"
  29. android:layout_width="match_parent"
  30. android:layout_height="?attr/actionBarSize"
  31. app:popupTheme="@style/ThemeOverlay.AppCompat.Light"
  32. app:layout_collapseMode="pin" />
  33.  
  34. </android.support.design.widget.CollapsingToolbarLayout>
  35.  
  36. </android.support.design.widget.AppBarLayout>
  37.  
  38. <android.support.v4.widget.NestedScrollView
  39. android:layout_width="match_parent"
  40. android:layout_height="match_parent"
  41. app:layout_behavior="@string/appbar_scrolling_view_behavior">
  42.  
  43. <LinearLayout
  44. android:layout_width="match_parent"
  45. android:layout_height="match_parent"
  46. android:orientation="vertical"
  47. android:paddingTop="24dp">
  48.  
  49. <android.support.v7.widget.CardView
  50. android:layout_width="match_parent"
  51. android:layout_height="wrap_content"
  52. android:layout_margin="@dimen/card_margin">
  53.  
  54. <LinearLayout
  55. style="@style/Widget.CardContent"
  56. android:layout_width="match_parent"
  57. android:layout_height="wrap_content">
  58.  
  59. <TextView
  60. android:layout_width="match_parent"
  61. android:layout_height="wrap_content"
  62. android:text="Info"
  63. android:textAppearance="@style/TextAppearance.AppCompat.Title" />
  64.  
  65. <TextView
  66. android:layout_width="match_parent"
  67. android:layout_height="wrap_content"
  68. android:text="@string/cheese_ipsum" />
  69.  
  70. </LinearLayout>
  71.  
  72. </android.support.v7.widget.CardView>
  73.  
  74. <android.support.v7.widget.CardView
  75. android:layout_width="match_parent"
  76. android:layout_height="wrap_content"
  77. android:layout_marginBottom="@dimen/card_margin"
  78. android:layout_marginLeft="@dimen/card_margin"
  79. android:layout_marginRight="@dimen/card_margin">
  80.  
  81. <LinearLayout
  82. style="@style/Widget.CardContent"
  83. android:layout_width="match_parent"
  84. android:layout_height="wrap_content">
  85.  
  86. <TextView
  87. android:layout_width="match_parent"
  88. android:layout_height="wrap_content"
  89. android:text="Friends"
  90. android:textAppearance="@style/TextAppearance.AppCompat.Title" />
  91.  
  92. <TextView
  93. android:layout_width="match_parent"
  94. android:layout_height="wrap_content"
  95. android:text="@string/cheese_ipsum" />
  96.  
  97. </LinearLayout>
  98.  
  99. </android.support.v7.widget.CardView>
  100.  
  101. <android.support.v7.widget.CardView
  102. android:layout_width="match_parent"
  103. android:layout_height="wrap_content"
  104. android:layout_marginBottom="@dimen/card_margin"
  105. android:layout_marginLeft="@dimen/card_margin"
  106. android:layout_marginRight="@dimen/card_margin">
  107.  
  108. <LinearLayout
  109. style="@style/Widget.CardContent"
  110. android:layout_width="match_parent"
  111. android:layout_height="wrap_content">
  112.  
  113. <TextView
  114. android:layout_width="match_parent"
  115. android:layout_height="wrap_content"
  116. android:text="Related"
  117. android:textAppearance="@style/TextAppearance.AppCompat.Title" />
  118.  
  119. <TextView
  120. android:layout_width="match_parent"
  121. android:layout_height="wrap_content"
  122. android:text="@string/cheese_ipsum" />
  123.  
  124. </LinearLayout>
  125.  
  126. </android.support.v7.widget.CardView>
  127.  
  128. </LinearLayout>
  129.  
  130. </android.support.v4.widget.NestedScrollView>
  131.  
  132. <android.support.design.widget.FloatingActionButton
  133. android:layout_height="wrap_content"
  134. android:layout_width="wrap_content"
  135. app:layout_anchor="@id/appbar"
  136. app:layout_anchorGravity="bottom|right|end"
  137. android:src="@drawable/ic_discuss"
  138. android:layout_margin="@dimen/fab_margin"
  139. android:clickable="true"/>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement