Skip to content

Instantly share code, notes, and snippets.

@robertlevonyan
Created August 20, 2018 11:47
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 robertlevonyan/cfbbf05c08004a9633cbc48d627d59c0 to your computer and use it in GitHub Desktop.
Save robertlevonyan/cfbbf05c08004a9633cbc48d627d59c0 to your computer and use it in GitHub Desktop.
Bottom App Bar
<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