Skip to content Skip to sidebar Skip to footer

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 :

Solution 1:

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.

Solution 2:

If you have set System UI visibility (e.g. View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR) this should do the trick in your main activity via onCreate():

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
    this.getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR | View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR);
}

Thanks @tomas

Post a Comment for "Windowlightnavigationbar Not Working On Android 10 (q)"