Skip to content

Instantly share code, notes, and snippets.

@Xiryl
Created January 11, 2019 09:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Xiryl/e8a868d68529b5d37c87a59fb50ce48e to your computer and use it in GitHub Desktop.
Save Xiryl/e8a868d68529b5d37c87a59fb50ce48e to your computer and use it in GitHub Desktop.
bottomappbar-example-6
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.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=".MainActivity">
<android.support.design.bottomappbar.BottomAppBar
android:id="@+id/bar"
android:layout_gravity="bottom"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:navigationIcon="@drawable/ic_menu_3"
app:backgroundTint="#FFFFFF"
app:fabAlignmentMode="center"
style="@style/Widget.MaterialComponents.BottomAppBar.Colored">
</android.support.design.bottomappbar.BottomAppBar>
<android.support.design.widget.FloatingActionButton
android:id="@+id/fav"
android:elevation="8dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_anchor="@id/bar"
android:src="@drawable/ic_add"/>
</android.support.design.widget.CoordinatorLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment