This Activity already has an action bar supplied by the window decor.
来源:互联网 发布:网络音柱怎么连接 编辑:程序博客网 时间:2024/04/30 12:28
Caused by: 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.
提示这个错误的时候,只需要在配置文件中,找到对应的activity的设置其样式为:
android:theme="@style/AppTheme.NoActionBar">
如果没有成功的话可以在Android的styles.xml中配置如下的命令即可:
<style name="AppTheme.NoActionBar"> <item name="windowActionBar">false</item> <item name="windowNoTitle">true</item> </style>
0 0
- This Activity already has an action bar supplied by the window decor
- 解决 This Activity already has an action bar supplied by the window decor 错误
- This Activity already has an action bar supplied by the window decor.
- This Activity already has an action bar supplied by the window decor.
- 错误集锦之一:This Activity already has an action bar supplied by the window decor.
- 错误集锦之一:This Activity already has an action bar supplied by the window decor.
- Android异常:This Activity already has an action bar supplied by the window decor
- IllegalStateException: This Activity already has an action bar supplied by the window decor.
- This Activity already has an action bar supplied by the window decor
- This Activity already has an action bar supplied by the window decor. Do not request Window.FEATURE
- This Activity already has an action bar supplied by the window decor. Do not request Window.FEATURE_
- This Activity already has an action bar supplied by the window decor. Do not request Window.FEATURE_
- 关于继承parent="Theme.AppCompat"错误:This Activity already has an action bar supplied by the window decor
- android开发错误-This Activity already has an action bar supplied by the window decor. Do not request Win
- java.lang.IllegalStateException: This Activity already has an action bar supplied by the window deco
- java.lang.IllegalStateException: This Activity already has an action bar supplied by the window deco
- java.lang.IllegalStateException: This Activity already has an action bar supplied by the window deco
- Caused by: java.lang.IllegalStateException: This Activity already has an action bar supplied by the
- C# 线程(一)入门
- JavaScript tab切换
- 嵌套事务的回滚
- Linux更改主机名和更改对应的域ip
- STM基础知识-中断
- This Activity already has an action bar supplied by the window decor.
- 内部排序算法4(归并排序)
- 如何在VS工具箱中添加DevExpress控件
- myeclipse解决内存溢出问题 java.lang.OutOfMemoryError: PermGen space
- 如何用敏捷方法做测试?
- 小结之倪老师
- 翻转设计模式系列——第三部分--设计模式(2)--结构型模式大比拼
- 剑指offer 44. 扑克牌的顺子
- Ubuntu树莓派交叉编译qt5.8 +mysql数据库驱动文件.so