once i heard if you can't do something 15 minutes ask help... I trying myself already 2 days.
Now I need your help.
I want make fab center cut in AppBar bottom in android studio
This don't work for me link 1 and this link 2
Code in screen 2
<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".ActionMenu">
<com.google.android.material.appbar.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/AppTheme.AppBarOverlay">
<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="@color/primaryDarkColor"
app:popupTheme="@style/AppTheme.PopupOverlay" />
</com.google.android.material.appbar.AppBarLayout>
<include
android:id="@+id/include"
layout="@layout/content_action_menu" />
<com.google.android.material.bottomappbar.BottomAppBar
android:id="@+id/bottomAppBar2"
style="@style/Widget.MaterialComponents.BottomAppBar.Colored"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/primaryDarkColor"
app:fabAttached="true"
android:gravity="bottom"
app:elevation="8dp"
app:fabAlignmentMode="center"
app:layout_anchor="@+id/include"
app:layout_anchorGravity="bottom|center" />
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/floatingActionButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:clickable="true"
app:elevation="8dp"
app:layout_anchor="@+id/bottomAppBar2"
app:layout_anchorGravity="center|fill_vertical"
app:srcCompat="@android:drawable/ic_menu_add" />
</androidx.coordinatorlayout.widget.CoordinatorLayout>
How make fab center cut in AppBar bottom?
Thanks for attention