ActionBarImpl can only be used with a compatible window decor layout
16lz
2021-01-23
在Activity中添加
requestWindowFeature(Window.FEATURE_ACTION_BAR);
requestWindowFeature(Window.FEATURE_ACTION_BAR_OVERLAY);
并在AndroidManifast.xml中对Activity进行android:theme="@android:style/Theme.Holo.Dialog"
就会报:ActionBarImpl can only be used with a compatible window decor layout
解决方案
1:requestWindowFeature(Window.FEATURE_ACTION_BAR);与android:theme="@android:style/Theme.Holo.Dialog"不能同时使用
2:把android:theme="@android:style/Theme.Holo.Dialog"改成android:theme="@android:style/Theme.Holo"
更多相关文章
- Android studio报错Plugin is too old 解决方案
- android scrollview listview 滚动冲突解决方案
- Conflict with dependency 'com.android.support:support-annota
- Android多渠道打包解决方案(兰贝壳儿)
- ADB server didn't ACK问题解决方案
- Android内存溢出解决方案(OOM)
- 轻量级Android6.0动态权限解决方案