<!-- Has purple statusBar and white navigationBar-->
<style name="Base.Theme.Appp" parent="Theme.Material3.DayNight.NoActionBar"/>
<!-- Has transparent statusBar and transparent navigationBar-->
<style name="Theme.Appp" parent="Base.Theme.Appp" />
<!-- Has purple statusBar and white navigationBar-->
<style name="Theme.Appp.Another" parent="Base.Theme.Appp"/>
<!-- Has purple statusBar and white navigationBar-->
<style name="Theme.ApppAnother" parent="Base.Theme.Appp"/>
<!-- Has purple statusBar and white navigationBar-->
<style name="Theme.Appp.AnotherOne" parent="Theme.Appp"/>
所以,我得到了一堆代表不同颜色的主题。我试图让用户能够选择他们想要的主要颜色。我还希望窗口有透明条。问题是只有 Theme.Appp 有透明的系统栏。这种不一致的原因是什么?
(我在 Android Studio 制作的 Material 3 Basic Activity 模板的新实例上完成了此操作。)