在Application类中,我已经添加了以下内容:
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO);
为什么它不工作?
<item name="android:forceDarkAllowed">false</item>
<style name="AppThemeLight" parent="Theme.AppCompat.Light.NoActionBar">
<item name="android:forceDarkAllowed">false</item>
</style>