Try menu-deploying fab.
This commit is contained in:
parent
1f5f9cb8de
commit
cd6b7c87d6
7 changed files with 90 additions and 12 deletions
|
@ -1,7 +1,9 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<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"
|
||||
xmlns:fab="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context="com.codigoparallevar.minicards.MainActivity">
|
||||
|
@ -27,14 +29,41 @@
|
|||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
|
||||
<!-- include layout="@layout/content_main" / -->
|
||||
|
||||
<android.support.design.widget.FloatingActionButton
|
||||
<com.getbase.floatingactionbutton.FloatingActionsMenu
|
||||
android:id="@+id/fab"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_marginRight="16dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginBottom="16dp"
|
||||
android:layout_gravity="bottom|end"
|
||||
android:layout_margin="@dimen/fab_margin"
|
||||
app:srcCompat="@android:drawable/ic_dialog_email" />
|
||||
fab:fab_addButtonColorNormal="@color/white"
|
||||
fab:fab_addButtonColorPressed="@color/white_pressed"
|
||||
fab:fab_addButtonPlusIconColor="@color/half_black"
|
||||
fab:fab_addButtonSize="mini"
|
||||
fab:fab_labelStyle="@style/menu_labels_style"
|
||||
fab:fab_labelsPosition="left">
|
||||
|
||||
<com.getbase.floatingactionbutton.FloatingActionButton
|
||||
android:id="@+id/set_developer_mode_button"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
fab:fab_colorNormal="@color/white"
|
||||
fab:fab_title="TBI: change to develop mode"
|
||||
fab:fab_colorPressed="@color/white_pressed"/>
|
||||
|
||||
<com.getbase.floatingactionbutton.AddFloatingActionButton
|
||||
android:id="@+id/add_part_button"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
fab:fab_plusIconColor="@color/half_black"
|
||||
fab:fab_colorNormal="@color/white"
|
||||
fab:fab_title="Add new part"
|
||||
fab:fab_colorPressed="@color/white_pressed"/>
|
||||
|
||||
</com.getbase.floatingactionbutton.FloatingActionsMenu>
|
||||
|
||||
</android.support.design.widget.CoordinatorLayout>
|
Loading…
Add table
Add a link
Reference in a new issue