Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

android bottomnav fab

<androidx.coordinatorlayout.widget.CoordinatorLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/coordinator"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <androidx.fragment.app.FragmentContainerView
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_marginBottom="?attr/actionBarSize" />

    <com.google.android.material.bottomappbar.BottomAppBar
        android:id="@+id/bottomBar"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_gravity="bottom"
        app:backgroundTint="?attr/colorPrimary"
        app:contentInsetEnd="0dp"
        app:contentInsetStart="0dp"
        app:fabAlignmentMode="end">

        <com.google.android.material.bottomnavigation.BottomNavigationView
            android:id="@+id/bottomNavigation"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            app:backgroundTint="@android:color/transparent"
            app:elevation="0dp"
            android:layout_marginEnd="100dp"
            app:itemIconTint="@android:color/white"
            app:itemRippleColor="@android:color/white"
            app:itemTextColor="@android:color/white"
            app:menu="@menu/menu_activity_home_bottom_navigation" />

    </com.google.android.material.bottomappbar.BottomAppBar>

    <com.google.android.material.floatingactionbutton.FloatingActionButton
        android:id="@+id/fab"
        android:src="@drawable/ic_add_white_24dp"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        app:layout_anchor="@id/bottomBar" />


</androidx.coordinatorlayout.widget.CoordinatorLayout>
Comment

PREVIOUS NEXT
Code Example
Java :: abstract class java constructor 
Java :: java break string at comma 
Java :: how to change fragment on button click navigation drawer 
Java :: how to get filename without extension in java 
Java :: finding the ascii value of a character in java 
Java :: getstring java 
Java :: kotlin spinner default value 
Java :: java arraylist initialize with 0 
Java :: how to print array in one line in java 
Java :: mergesort java 
Java :: JAVA Multi-line Comment 
Java :: Java Remove HashMap Elements 
Java :: java stream index 
Java :: room insert and return id 
Java :: get string size on screen 
Java :: finalize method 
Java :: zoneddatetime java 
Java :: generic variable java 
Java :: map.put in java 
Java :: runtime exception in java 
Java :: generics Interface in java 
Java :: java pass by reference 
Java :: minecraft addlayer(u) in the type rendererlivingentity<t is not applicable for the arguments 
Java :: update a key in the firebase realtime database java 
Java :: using for loop to search for an input java 
Java :: bukkit how to make a cancelable event 
Java :: Marging ViewPager 
Java :: android java string animations 
Java :: open google maps cycling navigation intent 
Java :: java compareto jdei stackoverflow 
ADD CONTENT
Topic
Content
Source link
Name
2+9 =