I am creating an app, with DayNight theme. But, as default, the navigation panel (not from my app, I am talking about the default 3 button navigation panel) is always dark. Is it possible to change the color of that navigation drawer from my app?
Asked
Active
Viewed 37 times
0
-
1check [this](https://stackoverflow.com/a/27839184/10967323) one. – Kanzariya Hitesh Jan 03 '20 at 10:54
1 Answers
1
Yes you can do it programmatically.
if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
getWindow().setNavigationBarColor(ContextCompat.getColor(this, R.color.primary));
}

Son Truong
- 13,661
- 5
- 32
- 58

Eldhopj
- 2,703
- 3
- 20
- 39
-
Thanks, this of course gives the answer to the question asked, but, is it possible to change the button color also, like what we have for gmail? – BaRud Jan 04 '20 at 05:45