android.util.AndroidRuntimeException: You cannot combine custom titles with other title features
在网上找了一些关于这些错的解决方法 也没能成功,最后慢慢调试;
requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
setContentView(R.layout.main);
getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE,
去掉这两句: requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE,
直接在你想要的manifest中添加你的自定义的titilebar的主题就行了 eg:
<activity
android:name="com.front.toyota.ui.MainActivity"
android:theme="@style/titlebar" >//--------------------------添加这句就行
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
1.本站遵循行业规范,任何转载的稿件都会明确标注作者和来源;2.本站的原创文章,请转载时务必注明文章作者和来源,不尊重原创的行为我们将追究责任;3.作者投稿可能会经我们编辑修改或补充。



