Answers for "Fab to CircularRevealFrameLayout example"

0

Fab to CircularRevealFrameLayout example

<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.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"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        tools:context=".MainActivity">

    <com.google.android.material.circularreveal.CircularRevealLinearLayout
            android:id="@+id/dial"
            android:layout_height="match_parent"
            android:layout_width="match_parent"
            android:orientation="horizontal"
            android:layout_gravity="bottom|center_horizontal"
            android:visibility="invisible"
            android:layout_marginBottom="16dp"
            app:layout_anchor="@id/fab"
            app:layout_anchorGravity="top|center_horizontal"
            android:background="@color/colorPrimary"
            app:layout_behavior="com.google.android.material.transformation.FabTransformationSheetBehavior">

        <ImageButton
                android:id="@+id/back" 
                android:layout_width="wrap_content" 
                android:layout_height="wrap_content"
                android:src="@drawable/back"/>

    </com.google.android.material.circularreveal.CircularRevealLinearLayout>


    <com.google.android.material.floatingactionbutton.FloatingActionButton
            android:id="@+id/fab"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="bottom|end"
            android:layout_margin="@dimen/fab_margin"
            android:backgroundTint="@color/colorPrimary"
            app:srcCompat="@android:drawable/ic_dialog_email"/>

</androidx.coordinatorlayout.widget.CoordinatorLayout>
Posted by: Guest on May-02-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language