Issue
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?
Solution
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));
}
Answered By - Eldhopj
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.