自定义标题栏的代码报这个错:“You cannot combine custom titles with other title feature”。
解决方法1:
在AndroidManifest.xml文件中将主题改为android:theme="@style/android:Theme.Light" >
亲测:成功,但是总体样式和之前的不一样(特么变丑了...)
解决方法2:
如果在customtitlebar的activity中设置了“android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
属性。那么与requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);冲突,才产生了以上错误。
只要把设置NoTitleBar属性去掉就可以解决问题喽。
(网友提供的方法,未亲测,暂且收下)