Do not request Window.FEATURE_SUPPORT_ACTION_BAR
2016-04-22 00:00
686 查看
摘要: This Activity already has an action bar supplied by the window decor. Do not request Window.FEATURE_SUPPORT_ACTION_BAR and set windowActionBar to false in your theme to use a Toolbar instead.
java.lang.RuntimeException: Unable to start activity ComponentInfo{chrisrenke.drawerarrowdrawable/chrisrenke.drawerarrowdrawable.DrawerArrowSample}: java.lang.IllegalStateException: This Activity already has an action bar supplied by the window decor. Do not request Window.FEATURE_SUPPORT_ACTION_BAR and set windowActionBar to false in your theme to use a Toolbar instead.
用<item name="windowActionBar">false</item> 代替 <item name="android:windowActionBar">false</item> <style name="AppTheme" parent="AppTheme.Base" /> <style name="AppTheme.Base" parent="Theme.AppCompat.Light.NoActionBar"> <item name="colorPrimary">@color/primary</item> <item name="colorPrimaryDark">@color/primaryDarker</item> <item name="android:windowNoTitle">true</item> <item name="windowActionBar">false</item> <item name="drawerArrowStyle">@style/DrawerArrowStyle</item></style><style name="DrawerArrowStyle" parent="Widget.AppCompat.DrawerArrowToggle"> <item name="spinBars">true</item> <item name="color">@android:color/white</item> </style> <color name="primary">#457C50</color> <color name="primaryDarker">#580C0C</color> |
相关文章推荐
- 关于WPF的Button 的click事件调用 code UI 代码的示例(有益于快速的自动化)
- data-model 简单介绍
- 简单日历封装
- Deque 容器
- Queue容器
- Xcode中buildSetting参数设置与学习
- 在iOS 8中使用UIAlertController
- mysql_query返回false原因
- Java基础-break,continue,return
- iOS开发系列--UITableView全面解析
- UE4:编辑器中显示物体包围框
- 十六进制string转换UIColor -备用
- HDU - 1159 Common Subsequence
- burpsuite中的几款插件推荐
- UVA_10534_Wavio Sequence
- This warning can be disabled by using the command line flag -Dcom.android.build.gradle.overridePath
- Xcode UUID查询
- ACE_Message_Queue和spawn实现(生产者/消费者)(V2.00)
- 南京理工大学第八届程序设计大赛(校外镜像) J sequence
- 南京理工大学第八届程序设计大赛(校外镜像) F sequence