Advertisement
CodaarX

Untitled

Jan 24th, 2022
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2. xmlns:app="http://schemas.android.com/apk/res-auto"
  3. xmlns:tools="http://schemas.android.com/tools"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent"
  6. android:background="@color/md_blue_grey_100"
  7. tools:context=".MainActivity">
  8.  
  9. <androidx.coordinatorlayout.widget.CoordinatorLayout
  10. android:layout_width="match_parent"
  11. android:layout_height="match_parent">
  12.  
  13. <com.google.android.material.floatingactionbutton.FloatingActionButton
  14. android:id="@+id/fab"
  15. android:layout_width="wrap_content"
  16. android:layout_height="wrap_content"
  17. app:srcCompat="@drawable/ic_baseline_add_24"
  18. app:layout_anchor="@id/bottom_app_bar" />
  19.  
  20. <com.google.android.material.bottomappbar.BottomAppBar
  21. android:id="@+id/bottom_app_bar"
  22. style="@style/Widget.MaterialComponents.BottomAppBar"
  23. android:layout_width="match_parent"
  24. android:layout_height="wrap_content"
  25. android:layout_gravity="bottom"
  26. android:theme="@style/AppThemeMaterial"
  27. app:fabAlignmentMode="center"
  28. app:fabAnimationMode="slide"
  29. app:fabCradleMargin="5dp"
  30. app:menu="@menu/menu_ba1"
  31. app:navigationIcon="@drawable/ic_menu" />
  32.  
  33. </androidx.coordinatorlayout.widget.CoordinatorLayout>
  34.  
  35. </androidx.constraintlayout.widget.ConstraintLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement