Advertisement
Guest User

Untitled

a guest
Jul 6th, 2020
28
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.constraintlayout.widget.ConstraintLayout
  3. xmlns:android="http://schemas.android.com/apk/res/android"
  4. xmlns:app="http://schemas.android.com/apk/res-auto"
  5. xmlns:tools="http://schemas.android.com/tools"
  6. android:layout_width="match_parent"
  7. android:layout_height="match_parent"
  8. tools:context=".MainActivity">
  9.  
  10.  
  11. <androidx.coordinatorlayout.widget.CoordinatorLayout
  12. android:id="@+id/bottom_layout"
  13. android:layout_width="match_parent"
  14. android:layout_height="match_parent">
  15.  
  16. <com.google.android.material.floatingactionbutton.FloatingActionButton
  17. android:id="@+id/fab"
  18. android:layout_width="wrap_content"
  19. android:layout_height="wrap_content"
  20.  
  21. app:layout_anchor="@id/nav_view" />
  22.  
  23. <com.google.android.material.bottomappbar.BottomAppBar
  24. android:id="@+id/nav_view"
  25. style="@style/Widget.MaterialComponents.BottomAppBar"
  26. android:layout_width="match_parent"
  27. android:layout_height="wrap_content"
  28. android:layout_gravity="bottom"
  29. app:backgroundTint="@color/colorPrimaryDark"
  30. app:fabAlignmentMode="center"
  31. app:menu="@menu/bottom_nav_menu"
  32.  
  33. />
  34.  
  35. <fragment
  36. android:id="@+id/nav_host_fragment"
  37. android:name="androidx.navigation.fragment.NavHostFragment"
  38. android:layout_width="match_parent"
  39. android:layout_height="match_parent"
  40. app:defaultNavHost="true"
  41. app:layout_constraintBottom_toTopOf="@id/nav_view"
  42. app:layout_constraintLeft_toLeftOf="parent"
  43. app:layout_constraintRight_toRightOf="parent"
  44. app:layout_constraintTop_toTopOf="parent"
  45. app:navGraph="@navigation/mobile_navigation" />
  46.  
  47. </androidx.coordinatorlayout.widget.CoordinatorLayout>
  48.  
  49. </androidx.constraintlayout.widget.ConstraintLayout>
Advertisement
RAW Paste Data Copied
Advertisement