How to set the background color of system navigation bar to the one of the new Bottom Navigation bar in Material 3? (Android)



I tried using this:

<item name="android:navigationBarColor">?attr/colorSurface</item>

but it isn’t giving me the desired result.. like the one shown in the docs:
enter image description here
enter image description here

I recently switched to Material 3.

If you want full code of the app:


Try adding this line to your main theme :

<item name="colorSurface">@color/"container color"</item>

Answered By – DrHowdyDoo

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave A Reply

Your email address will not be published.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More