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

来源:互联网 发布:木器漆品牌 知乎 编辑:程序博客网 时间:2024/05/17 08:50

看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"/>
改成这样 ,果然没有问题了,又学到了一点,继续努力!



1 1
原创粉丝点击