Created
August 20, 2018 11:47
-
-
Save robertlevonyan/cfbbf05c08004a9633cbc48d627d59c0 to your computer and use it in GitHub Desktop.
Bottom App Bar
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
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" > | |
<!-- Other components and views --> | |
<android.support.design.bottomappbar.BottomAppBar | |
android:id="@+id/bottomAppBar" | |
android:layout_width="match_parent" | |
android:layout_height="?actionBarSize" | |
android:layout_gravity="bottom" | |
app:backgroundTint="@color/yourColorValue" | |
app:buttonGravity="bottom|top" | |
app:fabAlignmentMode="end" | |
app:navigationIcon="@drawable/ic_back" /> | |
<android.support.design.widget.FloatingActionButton | |
android:id="@+id/setWallpaper" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:src="@drawable/ic_wallpaper" | |
app:backgroundTint="@color/colorPrimary" | |
app:fabSize="normal" | |
app:layout_anchor="@id/bottomAppBar" /> | |
</android.support.design.widget.CoordinatorLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment