您的位置:首页 > 移动开发

toolbar使用时显示AppCompat does not support the current theme features: { windowActionBar: false, windowA

2016-01-10 23:54 495 查看
看toolbar的使用介绍时:按照步骤一步步来,但TMD出现了AppCompat does not support the current theme features: { windowActionBar: false, windowActionBarOverlay: false, android:windowIsFloating: false, windowActionModeOverlay: false, windowNoTitle: false 

这样的异常 ,很郁闷!搜到这位朋友(http://my.oschina.net/xesam/blog/407157)才解决了,这个问题;

<style name="AppTheme.Base" parent="Theme.AppCompat.Light.NoActionBar">
</style>

<style name="AppTheme" parent="AppTheme.Base"/>

改成这样 ,果然没有问题了,又学到了一点,继续努力!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: