Navigation bar color in Kotlin

420 views Asked by At

I have a problem with the navigation bar color in android 13, when I set it to white the button remain white so they are not visible. Any solution to that in Kotlin? Can the button color in the navbar? The color is set in themes.

Also I found some answers, either it's outdated or it does not work for me.

enter image description here

1

There are 1 answers

4
Ömer Seyfettin Yavuzyiğit On

add this to themes.xml

<item name="android:navigationBarColor">@color/navigation_bar_color</item>

colors.xml

<color name="navigation_bar_color">#000000</color>