1、you cannot combin custom title with other title features
requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
setContentView(R.layout.activtiy_showlist);//这句报错
getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.activity_bar_edt);
百度后:对于Activity系统会默认添加android:theme属性而这个默认的属性带有默认的title,所以你要覆盖这个属性,不然的话就相当于一个Activity有两个title所以会出现运行异常,新添加的theme属性值里面应该不能有有title。
将对应的Activity添加属性android:theme="@android:style/Theme.Light"可正常运行
具体原因不太懂。(当然也有其他的解决办法)