报如下错误: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, R.layout.custom_title);
原因暂时不是很清楚,在android4.0中会出现,android2.3中应该没有问题,貌似是title的冲突,解决方法如下:
在你的AndroidManifest.xml中添加相应Active的theme。如添加下面语句可解决:
android:theme="@android:style/Theme.Dialog"
具体的theme选项内容的添加根据你自己的意图选择。
xdyang 于2012-5-21 于reasil