Advertisement
Guest User

Untitled

a guest
Oct 20th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.38 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.coordinatorlayout.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=".ItemDetailActivity"
  9. tools:ignore="MergeRootFrame">
  10.  
  11. <com.google.android.material.appbar.AppBarLayout
  12. android:id="@+id/app_bar"
  13. android:layout_width="match_parent"
  14. android:layout_height="@dimen/app_bar_height"
  15. android:fitsSystemWindows="true"
  16. android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
  17.  
  18. <com.google.android.material.appbar.CollapsingToolbarLayout
  19. android:id="@+id/toolbar_layout"
  20. android:layout_width="match_parent"
  21. android:layout_height="match_parent"
  22. android:fitsSystemWindows="true"
  23. app:contentScrim="?attr/colorPrimary"
  24. app:layout_scrollFlags="scroll|exitUntilCollapsed"
  25. app:toolbarId="@+id/toolbar">
  26.  
  27. <androidx.appcompat.widget.Toolbar
  28. android:id="@+id/detail_toolbar"
  29. android:layout_width="match_parent"
  30. android:layout_height="?attr/actionBarSize"
  31. app:layout_collapseMode="pin"
  32. app:popupTheme="@style/ThemeOverlay.AppCompat.Light" />
  33.  
  34. </com.google.android.material.appbar.CollapsingToolbarLayout>
  35.  
  36. </com.google.android.material.appbar.AppBarLayout>
  37.  
  38. <androidx.core.widget.NestedScrollView
  39. android:id="@+id/item_detail_container"
  40. android:layout_width="match_parent"
  41. android:layout_height="match_parent"
  42. app:layout_behavior="@string/appbar_scrolling_view_behavior" />
  43.  
  44. <com.google.android.material.floatingactionbutton.FloatingActionButton
  45. android:id="@+id/fab"
  46. android:layout_width="wrap_content"
  47. android:layout_height="wrap_content"
  48. android:layout_gravity="center_vertical|start"
  49. android:layout_margin="@dimen/fab_margin"
  50. app:layout_anchor="@+id/item_detail_container"
  51. app:layout_anchorGravity="top|end"
  52. app:srcCompat="@android:drawable/stat_notify_sync" />
  53.  
  54. </androidx.coordinatorlayout.widget.CoordinatorLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement