This Activity already has an action bar supplied by the window decor
来源:互联网 发布:界面编程语言 编辑:程序博客网 时间:2024/05/17 23:16
1. 问题所在
- 主题中是有actionbar的。
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> <!-- Customize your theme here. --> <item name="colorPrimary">@color/white</item> <item name="colorPrimaryDark">@color/white</item> <item name="colorAccent">@color/colorAccent</item> <item name="android:listDivider">@drawable/divider</item> </style>
- 在有actionbar的情况下调用了toolbar
setSupportActionBar(newsDetailsWebviewToolbar);
2. 解决方法
- 设置没有actionbar的主题
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar"> <!-- Customize your theme here. --> <item name="colorPrimary">@color/white</item> <item name="colorPrimaryDark">@color/white</item> <item name="colorAccent">@color/colorAccent</item> <item name="android:listDivider">@drawable/divider</item></style>
- 不要动态隐藏Actionbar,因为我们需要的是Toolbar
阅读全文
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
- 科普 | 以链接为中心的系统:Link-based Systems
- 虚基类和虚继承
- 2.1 Spring5 快速入门
- POJ 2932 Coneology 笔记
- Linux 安装zabbix客户端
- This Activity already has an action bar supplied by the window decor
- 【LeetCode】C# 12、Integer to Roman
- 使用夹逼准则求解二重极限的例题(1)
- LEETheme优雅的主题管理库
- HTML中跳转到文章的指定段落
- 空心圆及层叠效果
- 给定一个字符串s,求子串都是回文的集合。
- php编译时错误 WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP
- Windows转Linux,相关替换软件