Advertisement
Guest User

Untitled

a guest
Jul 25th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.03 KB | None | 0 0
  1. <android.support.design.widget.CoordinatorLayout
  2. xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. xmlns:tools="http://schemas.android.com/tools"
  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="300dp"
  13. android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
  14. android:fitsSystemWindows="true">
  15.  
  16. <android.support.design.widget.CollapsingToolbarLayout
  17. android:id="@+id/collapsingToolbar"
  18. android:layout_width="match_parent"
  19. android:layout_height="match_parent"
  20. app:layout_scrollFlags="scroll|exitUntilCollapsed"
  21. android:fitsSystemWindows="true"
  22. app:contentScrim="?attr/colorPrimary"
  23. app:expandedTitleMarginStart="48dp"
  24. app:expandedTitleMarginEnd="64dp"
  25. app:title="აკაკი წერეთლის სახელობის რაღაც">
  26.  
  27. <ImageView
  28. android:id="@+id/toolbarImage"
  29. android:layout_width="match_parent"
  30. android:layout_height="match_parent"
  31. android:scaleType="centerCrop"
  32. android:fitsSystemWindows="true"
  33. android:src="@drawable/image_akaki_tseretlis_sakhelmtsipo_universiteti"
  34. app:layout_collapseMode="parallax" />
  35.  
  36. <android.support.v7.widget.Toolbar
  37. android:id="@+id/toolbar"
  38. android:layout_width="match_parent"
  39. android:layout_height="?attr/actionBarSize"
  40. app:popupTheme="@style/ThemeOverlay.AppCompat.Light"
  41. app:layout_collapseMode="pin" />
  42. </android.support.design.widget.CollapsingToolbarLayout>
  43. </android.support.design.widget.AppBarLayout>
  44.  
  45. <android.support.v4.widget.NestedScrollView
  46. android:layout_width="match_parent"
  47. android:layout_height="match_parent"
  48. app:layout_behavior="@string/appbar_scrolling_view_behavior">
  49.  
  50. <TextView
  51. android:layout_width="match_parent"
  52. android:layout_height="wrap_content"
  53. android:textSize="28sp"
  54. android:lineSpacingExtra="8dp"
  55. android:text="lelelelelel"
  56. android:padding="@dimen/activity_horizontal_margin" />
  57. </android.support.v4.widget.NestedScrollView>
  58.  
  59. <android.support.design.widget.FloatingActionButton
  60. android:id="@+id/button_add_to_favorite"
  61. android:layout_height="wrap_content"
  62. android:layout_width="wrap_content"
  63. android:layout_margin="@dimen/activity_horizontal_margin"
  64. android:src="@drawable/ic_favorite"
  65. app:layout_anchor="@id/appBar"
  66. app:layout_anchorGravity="bottom|end" />
  67.  
  68. </android.support.design.widget.CoordinatorLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement