adesuryadi_

Latihan 9_activity_menu.xml

Jun 18th, 2019
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.98 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=".Menu">
  9.  
  10. <android.support.design.widget.AppBarLayout
  11. android:id="@+id/app_bar"
  12. android:layout_width="match_parent"
  13. android:layout_height="@dimen/app_bar_height"
  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. app:toolbarId="@+id/toolbar">
  25.  
  26. <android.support.v7.widget.Toolbar
  27. android:id="@+id/toolbar"
  28. android:layout_width="match_parent"
  29. android:layout_height="?attr/actionBarSize"
  30. app:layout_collapseMode="pin"
  31. app:popupTheme="@style/AppTheme.PopupOverlay" />
  32.  
  33. </android.support.design.widget.CollapsingToolbarLayout>
  34. </android.support.design.widget.AppBarLayout>
  35.  
  36. <include layout="@layout/content_menu" />
  37.  
  38. <android.support.design.widget.FloatingActionButton
  39. android:id="@+id/fab"
  40. android:layout_width="wrap_content"
  41. android:layout_height="wrap_content"
  42. android:layout_margin="@dimen/fab_margin"
  43. app:layout_anchor="@id/app_bar"
  44. app:layout_anchorGravity="bottom|end"
  45. app:srcCompat="@android:drawable/ic_dialog_email" />
  46.  
  47. </android.support.design.widget.CoordinatorLayout>
Add Comment
Please, Sign In to add comment