Created
April 14, 2021 03:13
-
-
Save ajailani4/3f8f14c38bad8a7a5ecfab01dd085f41 to your computer and use it in GitHub Desktop.
With BottomAppBar
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
<com.google.android.material.bottomappbar.BottomAppBar | |
android:id="@+id/bottomAppBar" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_gravity="bottom" | |
app:fabAlignmentMode="center" | |
app:fabCradleRoundedCornerRadius="20dp" | |
app:fabCradleMargin="8dp" | |
app:contentInsetStart="0dp" | |
app:contentInsetStartWithNavigation="0dp" | |
app:hideOnScroll="true"> | |
<com.google.android.material.bottomnavigation.BottomNavigationView | |
android:id="@+id/bottomNav" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:background="@android:color/transparent" | |
android:outlineAmbientShadowColor="@android:color/transparent" | |
android:outlineSpotShadowColor="@android:color/transparent" | |
app:menu="@menu/bottom_nav_menu" /> | |
</com.google.android.material.bottomappbar.BottomAppBar> | |
<com.google.android.material.floatingactionbutton.FloatingActionButton | |
android:id="@+id/phoneSearchFab" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:src="@drawable/ic_search" | |
android:contentDescription="@string/search_phone" | |
app:layout_anchor="@id/bottomAppBar" | |
app:backgroundTint="@color/colorPrimary" | |
app:tint="@color/white" | |
app:elevation="4dp" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment