报错】android.util.AndroidRuntimeException: You cannot combine custom titles with other title features
造成这个出错的原因是因为在代码中使用了:
- this.requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
this.requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
原因应该所在android3.0以上的版本中已经默认帮你设这了title,而在3.0以下的版本可以正常使用,
解决办法就是:
1。在AndroidManifest.xml 中更改<application>标签中的android:theme="@style/AppTheme"(自定义主题时候),根据自己需要更改。
2。或者直接删除掉\res\values-v11和v11+(系统默认的对你没有用处时)。