问题如下:
AppCompat does not support the current theme features: { windowActionBar: false, windowActionBarOverlay: false, android:windowIsFloating: false, windowActionModeOverlay: false, windowNoTitle: false }
尝试themes.xml 中添加
<style name="NoTitleScreen" parent="@style/Theme.AppCompat.Light">
<item name="android:windowActionBar">false</item>
<item name="android:windowNoTitle">true</item>
</style>
测试失败,报错。
尝试去掉 android: 后测试成功
<style name="NoTitleScreen" parent="@style/Theme.AppCompat.Light">
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
</style>
代码尝试设置使用
supportRequestWindowFeature(Window.FEATURE_NO_TITLE);