问题
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