我之后调用setContentView()时收到此错误
requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.maintitlebar);
Run Code Online (Sandbox Code Playgroud)
代码在我的类的onCreate()中,它扩展了ListActivity.我的清单XML文件显示了应用程序的默认AppTheme:
android:theme="@style/AppTheme"
Run Code Online (Sandbox Code Playgroud)
我已将styles.xml更新为:
<resources>
<style name="AppTheme" parent="android:Theme.Light" >
<item name="android:windowNoTitle">true</item>
</style>
</resources>
Run Code Online (Sandbox Code Playgroud)
这似乎与此错误消息的主要帖子一致.我还清理了构建,但我仍然收到上述错误消息.有谁知道造成冲突的原因是什么?
android ×1