Quantcast
Channel: Active questions tagged navigation - Stack Overflow
Viewing all articles
Browse latest Browse all 9900

How to Remove Extra White Background from BottomNavigationView in Android?

$
0
0
<?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 BottomAppBar. However, I am encountering an issue where there is an extra white background around the icon labels in the BottomNavigationView, which I am unable to remove.

See output here

See Here


Viewing all articles
Browse latest Browse all 9900

Trending Articles