Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2017
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.15 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. xmlns:tools="http://schemas.android.com/tools"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. android:fitsSystemWindows="true"
  8. tools:context="ru.unify.dimantik.a1.HomeActivity">
  9.  
  10. <android.support.design.widget.AppBarLayout
  11. android:id="@+id/app_bar"
  12. android:layout_width="match_parent"
  13. android:layout_height="256dp"
  14. android:fitsSystemWindows="true"
  15. android:theme="@style/AppTheme.AppBarOverlay">
  16.  
  17. <android.support.design.widget.CollapsingToolbarLayout
  18. android:id="@+id/toolbar_layout"
  19. android:layout_width="match_parent"
  20. android:layout_height="match_parent"
  21. android:fitsSystemWindows="true"
  22. app:contentScrim="?attr/colorPrimary"
  23. app:layout_scrollFlags="scroll|exitUntilCollapsed">
  24.  
  25. <ImageView
  26. android:layout_width="match_parent"
  27. android:layout_height="match_parent"
  28. android:background="@drawable/header"
  29. app:layout_collapseMode="parallax"/>
  30.  
  31. <android.support.v7.widget.Toolbar
  32. android:id="@+id/home_toolbar"
  33. android:layout_width="match_parent"
  34. android:layout_height="?attr/actionBarSize"
  35. app:layout_collapseMode="pin"
  36. app:popupTheme="@style/AppTheme.PopupOverlay" />
  37.  
  38. </android.support.design.widget.CollapsingToolbarLayout>
  39. </android.support.design.widget.AppBarLayout>
  40.  
  41. <include layout="@layout/content_home" />
  42.  
  43. <android.support.design.widget.FloatingActionButton
  44. android:id="@+id/fab"
  45. android:layout_width="wrap_content"
  46. android:layout_height="wrap_content"
  47. android:layout_margin="@dimen/fab_margin"
  48. app:layout_anchor="@id/app_bar"
  49. app:layout_anchorGravity="bottom|end"
  50. app:srcCompat="@android:drawable/ic_dialog_email" />
  51.  
  52. </android.support.design.widget.CoordinatorLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement