Bottom App Bar for Android - A Material Design Component
Similar to an App Bar (Top App Bar or Toolbar), Google introduced the Bottom App Bar as part of the Material Design Components back in 2018. Let's get into the implementation by adding a dependency to the build.gradle file. implementation "com.google.android.material:material:1.2.0-alpha03" In the next step, let's add the BottomAppBar and the FloatingActionButton to the activity layout. <com.google.android.material.bottomappbar.BottomAppBar android:id="@+id/bottomAppBar" style="@style/Widget.MaterialComponents.BottomAppBar.PrimarySurface" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="bottom" app:hideOnScroll="true" app:fabAnimationMode="slide" app:menu="@menu/menu_main" app:navigationIcon="@drawable/ic_menu_white" /> <com.google.android.material.floatingactionbutton.F