windowLightNavigationBar not working on Android 10 (Q)

走远了吗. 提交于 2021-01-28 04:19:44

问题


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!:

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.


回答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.



来源:https://stackoverflow.com/questions/59454430/windowlightnavigationbar-not-working-on-android-10-q

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!