How to Remove Extra White Background from BottomNavigationView in Android?
<?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” android:id=”@+id/lt_content” android:layout_width=”match_parent” android:layout_height=”match_parent” android:background=”@color/black” android:fitsSystemWindows=”true”> <com.google.android.material.bottomappbar.BottomAppBar android:id=”@+id/bottom_bar” android:layout_width=”match_parent” android:layout_height=”wrap_content” android:layout_gravity=”bottom” android:clickable=”false” app:fabAlignmentMode=”center” /> <FrameLayout android:layout_width=”match_parent” android:layout_height=”wrap_content” android:layout_gravity=”bottom”> <com.google.android.material.bottomnavigation.BottomNavigationView android:id=”@+id/bottom_navigation” android:layout_width=”match_parent” android:background=”@android:color/transparent” android:layout_height=”wrap_content” android:clickable=”false” app:menu=”@menu/bottom_nav_menu” /> </FrameLayout> <com.google.android.material.floatingactionbutton.FloatingActionButton android:id=”@+id/fab” android:layout_width=”wrap_content” android:layout_height=”wrap_content” app:layout_anchor=”@id/bottom_bar” /> </androidx.coordinatorlayout.widget.CoordinatorLayout> I am currently working on an Android project where I have implemented a BottomNavigationView within a […]
Button Nav bar height is unexpected after changing navigation mode to bottom navigation in real device
i am working on android project.Showing perfect on gestures modeThe button nav bar is showing perfect when i enable the gesture navigation in device but it height becomes too large when i switch back to the button navigation in device.It becomes like that When i set the custom height like 70 dp then also it is working perfect on gesture mode but it collpase up and icon do not visible this time not label on button navigation mode.Here is my code:-