Android This Activity already has an action bar supplied by the window decor
2024-08-31 11:38:58
This Activity already has an action bar supplied by the window decor. Do not request Window.FEATURE_ACTION_BAR and set windowActionBar to false in your theme to use a Toolbar instead.
解决方式:
打开Style,设置为
<style name="AppTheme" parent="AppTheme.Base" /> <style name="AppTheme.Base" parent="Theme.AppCompat.Light.NoActionBar">
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="android:windowNoTitle">true</item>
<item name="windowActionBar">false</item>
</style>
<style name="AppTheme.NoActionBar">
<item name="android:windowActionBar">false</item>
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
<item name="android:windowNoTitle">true</item>
</style>
最新文章
- css总结(更新中...)
- Java中事务的概念
- Java工程图标前面的红色叹号
- android开发之画图版
- Oracle游标带参数
- JSP中使用的模式——JSP+Servlet+JavaBean
- php错误处理和php异常处理机制
- bootstrap datatable项目封装支持单选多选
- App如何选择移动广告平台,开发者2 - 移动变现模式分析
- Linux挂在ntfs格式的U盘
- 用过的一些Android设备调试特性注意点(挖坑帖)
- HttpClient4 TIME_WAIT和CLOSE_WAIT
- 手动搭建Docker本地私有镜像仓库
- CentOS7.5下安装Mycat连接MySQL8.0
- Android对接微信支付体验
- Visual Studio2013的安装过程及练习测试
- monit安装配置
- 排列组合或容斥原理 SPOJ - AMR11H
- bzoj千题计划225:bzoj2143: 飞飞侠
- js 模拟鼠标事件
热门文章
- Ubuntu下的用户和权限(三)
- 编写函数int count_number_string(char str[])和函数int maxnum_string(char str[])
- awesome-free-software
- Oracle SQL性能优化系列
- 【刷题笔记】LeetCode 222. Count Complete Tree Nodes
- 26.QT颜色与布局
- Java语言的优点
- 服务器未能识别http头soapaction的值
- ROS-SLAM-自主导航
- Asp.Net Core部署到Linux服务器