Limbo
Limbo

Reputation: 11

Match system navigation bar background with bottom navigation bar from app

I'm developing an Android app with a BottomNavigationView. I've set the background color of the BottomNavigationView to match my app's theme, but I noticed that the background color of the system navigation bar is different from the BottomNavigationView's background color: My app's bottom navigation bar

Is there a way match the background color of the system navigation bar with the BottomNavigationView in Android? I want to ensure visual consistency across my app's UI and the system UI elements.

Upvotes: 0

Views: 65

Answers (1)

Muhammad Ahmad
Muhammad Ahmad

Reputation: 11

Go to Resources->values->themes

Set themes.xml

<style name="Base.Theme.AppName" parent="Theme.AppCompat.DayNight.NoActionBar">

//For status Bar

    <item name="android:statusBarColor">@color/Color You Want</item>

//For system navigation bar

    <item name="android:navigationBarColor">@color/Color You Want</item>

</style>

You can do the same for night mode

Upvotes: 0

Related Questions