0

How change color navigation bar on sdk 16 - 21. For sdk >21 i'm used window.navigationBarColor

EnTaylor
  • 1
  • 1
  • look here: https://stackoverflow.com/a/27839184/9309845 I think that You won't be able to do it below KitKat. Are You really need to use sdk below 21? Or below KitKat? – OMIsie11 Apr 16 '20 at 10:34
  • i need user sdk 16-21. But i don't understand how do it – EnTaylor Apr 16 '20 at 11:25
  • So if You need Your minSdk that low, then implement colored navigation bar only for api >21. How to do it was already answered here: https://stackoverflow.com/questions/27839105/android-lollipop-change-navigation-bar-color – OMIsie11 Apr 16 '20 at 11:45

2 Answers2

0

use window.setNavigationBarColor(@ColorInt int color)

rogger2016
  • 821
  • 3
  • 11
  • 28
0

inside Styles.xml,

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

or

window.setNavigationBarColor(@ColorInt int color)
Priyanka
  • 247
  • 4
  • 19