Advertisement
Guest User

Untitled

a guest
Aug 14th, 2015
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.48 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2.  
  3. <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4. xmlns:app="http://schemas.android.com/apk/res-auto"
  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/app_bar_layout"
  11. android:layout_width="match_parent"
  12. android:layout_height="wrap_content"
  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:layout_scrollFlags="scroll|exitUntilCollapsed">
  25.  
  26. <ImageView
  27. android:id="@+id/image"
  28. android:layout_width="match_parent"
  29. android:layout_height="wrap_content"
  30. android:fitsSystemWindows="true"
  31. android:scaleType="centerCrop"
  32. android:src="@drawable/p"
  33. app:layout_collapseMode="parallax" />
  34.  
  35. <android.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. app:popupTheme="@style/ThemeOverlay.AppCompat.Light" />
  41.  
  42. </android.support.design.widget.CollapsingToolbarLayout>
  43.  
  44. </android.support.design.widget.AppBarLayout>
  45.  
  46. <android.support.v4.widget.NestedScrollView
  47. android:id="@+id/scroll"
  48. android:layout_width="match_parent"
  49. android:layout_height="match_parent"
  50. android:clipToPadding="false"
  51. app:layout_behavior="@string/appbar_scrolling_view_behavior">
  52.  
  53.  
  54. <android.support.v7.widget.CardView
  55. android:layout_width="match_parent"
  56. android:layout_height="wrap_content"
  57. android:layout_marginTop="24dp"
  58. app:cardElevation="6dp"
  59. app:cardUseCompatPadding="true">
  60.  
  61. <LinearLayout
  62. android:layout_width="match_parent"
  63. android:layout_height="wrap_content"
  64. android:orientation="vertical">
  65.  
  66.  
  67. <TextView
  68. android:id="@+id/description"
  69. android:layout_width="match_parent"
  70. android:layout_height="wrap_content"
  71. android:layout_margin="30dp"
  72. android:text="@string/lorem_ipsum"
  73. android:textAppearance="@style/TextAppearance.AppCompat.Body1" />
  74.  
  75. </LinearLayout>
  76.  
  77. </android.support.v7.widget.CardView>
  78.  
  79.  
  80. </android.support.v4.widget.NestedScrollView>
  81.  
  82. <android.support.design.widget.FloatingActionButton
  83. android:id="@+id/fab"
  84. android:layout_width="10dp"
  85. android:layout_height="10dp"
  86. android:theme="@style/ThemeOverlay.AppCompat.Light"
  87. app:layout_anchor="@id/app_bar_layout"
  88. app:layout_anchorGravity="bottom|right|end" />
  89.  
  90.  
  91. </android.support.design.widget.CoordinatorLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement