Created
January 11, 2019 09:46
-
-
Save Xiryl/e8a868d68529b5d37c87a59fb50ce48e to your computer and use it in GitHub Desktop.
bottomappbar-example-6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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