Search code examples
androidandroid-10.0

windowLightNavigationBar not working on Android 10 (Q)


I'm trying to make Navigation Bar Light With dark Dots on it So I made style-v27.xml with windowLightNavigationBar = true :

    <item name="android:windowLightNavigationBar">true</item>
    <item name="android:navigationBarColor">@android:color/white</item>

this feature is available in Api Level 27+ AND:

  • it works fine on api 27 (android 8.1) - emulator
  • it works fine on api 28 (android 9) - emulator
  • it's NOT working on api 29 (android 10) - emulator

On Android 10 dot remains White And Background is Also White!:

enter image description here

by the way I'm Targeting on Api 29. I have tested on "EMULATOR". I haven't access to a real Android 10 device to confirm this bug is also there.


Solution

  • This was an AVD bug not an android platform bug. close android Q AVD and Update android 10 SDK system files. re open AVD. problem solved.

    if this not helped, Delete AVD and Recreate it.