2

Is there any way to change the color of the navigation bar BUTTONS not the navigation bar itself from white to grey:

enter image description here

to

enter image description here

Ze Qian Mok
  • 105
  • 10
  • 4
    Possible duplicate of [Android lollipop change navigation bar color](http://stackoverflow.com/questions/27839105/android-lollipop-change-navigation-bar-color) – Nikola May 16 '17 at 14:04
  • I belelive [this](https://developer.android.com/reference/android/view/Window.html#setNavigationBarColor(int)) is all you need. I have never tried it myself but should work – Luís Gonçalves May 16 '17 at 14:05

1 Answers1

-2

you can do this in API > 21 as follow :

if (Build.VERSION.SDK_INT >= 21) {
    getWindow().setNavigationBarColor(ContextCompat.getColor(this, R.color.some_color));
}

see more information here


or just add following code in values-v21/style.xml

<item name="android:navigationBarColor">@color/theme_color</item>
Arash Hatami
  • 5,297
  • 5
  • 39
  • 59