0

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?

BaRud
  • 3,055
  • 7
  • 41
  • 89

1 Answers1

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