Limun
Limun

Reputation: 307

Navigation bar color in Kotlin

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

Upvotes: 1

Views: 1067

Answers (1)

add this to themes.xml

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

colors.xml

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

Upvotes: 2

Related Questions