Created
June 23, 2015 08:01
-
-
Save douo/dfde289778a9b3b6918f to your computer and use it in GitHub Desktop.
FloatingActionMenu build by android support FloatingActionButton
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
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:fab="http://schemas.android.com/apk/res-auto" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:orientation="vertical"> | |
<com.diaoser.tmr.view.FloatingActionMenu | |
android:id="@+id/fab_menu" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:background="#88FFFFFF" | |
android:padding="16dp"> | |
<!--First button as menu button--> | |
<android.support.design.widget.FloatingActionButton | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_gravity="bottom|end" | |
android:src="@drawable/ic_action_new"/> | |
<!-- Other button as menu items--> | |
<android.support.design.widget.FloatingActionButton | |
android:id="@+id/fab_scanner" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_gravity="bottom|end" | |
android:contentDescription="Scan" | |
android:src="@drawable/ic_action_new" | |
fab:fabSize="mini"/> | |
<android.support.design.widget.FloatingActionButton | |
android:id="@+id/fab_books" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_gravity="bottom|end" | |
android:contentDescription="Books" | |
android:src="@drawable/ic_action_new" | |
fab:fabSize="mini"/> | |
<android.support.design.widget.FloatingActionButton | |
android:id="@+id/fab_custom" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_gravity="bottom|end" | |
android:contentDescription="Custom" | |
android:src="@drawable/ic_action_new" | |
fab:fabSize="mini"/> | |
<android.support.design.widget.FloatingActionButton | |
android:id="@+id/fab_batch" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_gravity="bottom|end" | |
android:contentDescription="batch" | |
android:src="@drawable/ic_action_new" | |
fab:fabSize="mini"/> | |
</com.diaoser.tmr.view.FloatingActionMenu> | |
</FrameLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@PaNaVTEC here, sorry it took so long. https://github.com/TristanWiley/FloatingActionMenu