Created
August 26, 2018 08:20
-
-
Save shubhamnikam/7fc1f07fe06ad4a3a1a70fe823f7a878 to your computer and use it in GitHub Desktop.
FAB menu xml
This file contains hidden or 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"?> | |
<RelativeLayout 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" | |
android:orientation="vertical" | |
tools:context=".MainActivity"> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_centerInParent="true" | |
android:text="@string/app_name" | |
android:textColor="@android:color/black"/> | |
<include layout="@layout/content_main" /> | |
</RelativeLayout> |
This file contains hidden or 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"?> | |
<RelativeLayout 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"> | |
<TextView | |
android:id="@+id/textview_share" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_alignParentBottom="true" | |
android:layout_alignParentEnd="true" | |
android:layout_marginBottom="186dp" | |
android:layout_marginEnd="88dp" | |
android:background="#212121" | |
android:padding="8dp" | |
android:text="Share" | |
android:textColor="#ffffff" | |
android:visibility="invisible" /> | |
<android.support.design.widget.FloatingActionButton | |
android:id="@+id/fab2" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_alignParentBottom="true" | |
android:layout_alignParentEnd="true" | |
android:layout_marginBottom="176dp" | |
android:layout_marginEnd="24dp" | |
android:background="?android:attr/selectableItemBackground" | |
android:clickable="true" | |
android:elevation="16dp" | |
android:focusable="true" | |
android:visibility="invisible" | |
app:backgroundTint="#ffffff" | |
app:pressedTranslationZ="12dp" | |
app:srcCompat="@drawable/icon_share" /> | |
<TextView | |
android:id="@+id/textview_mail" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_alignParentBottom="true" | |
android:layout_alignParentEnd="true" | |
android:layout_marginBottom="116dp" | |
android:layout_marginEnd="88dp" | |
android:background="#212121" | |
android:padding="8dp" | |
android:text="Email" | |
android:textColor="#ffffff" | |
android:visibility="invisible" /> | |
<android.support.design.widget.FloatingActionButton | |
android:id="@+id/fab1" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_alignParentBottom="true" | |
android:layout_alignParentEnd="true" | |
android:layout_marginBottom="106dp" | |
android:layout_marginEnd="24dp" | |
android:background="?android:attr/selectableItemBackground" | |
android:clickable="true" | |
android:elevation="16dp" | |
android:focusable="true" | |
android:visibility="invisible" | |
app:backgroundTint="#ffffff" | |
app:pressedTranslationZ="12dp" | |
app:srcCompat="@drawable/icon_email" /> | |
<android.support.design.widget.FloatingActionButton | |
android:id="@+id/fab" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_alignParentBottom="true" | |
android:layout_alignParentEnd="true" | |
android:layout_marginBottom="32dp" | |
android:layout_marginEnd="24dp" | |
android:background="?android:attr/selectableItemBackground" | |
android:clickable="true" | |
android:elevation="16dp" | |
android:focusable="true" | |
android:visibility="visible" | |
app:backgroundTint="#ffffff" | |
app:pressedTranslationZ="12dp" | |
app:srcCompat="@drawable/icon_add" /> | |
</RelativeLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment