android自定义Theme,标题栏下出现一条蓝线,如何去掉?

 手机用户2502870143_120 发布于 2022-11-05 07:27

自定义的Theme parent是Holo.Light
改了背景颜色和标题栏文字颜色
然后发现标题栏下面出现一条蓝线
设置actionpider、pider都无法去掉
求教如何才能去掉它?
网上搜到的方法都是Dialog对话框里出现这个怎么改变颜色,可我这不是Dialog对话框,就是应用的主Activity.



    
    

    

    


1 个回答
  • 解决了 用了这种布局之后解决了

    <resources>
    
        <style name="customTheme" parent="@android:style/Theme.Holo.Light">
            <item name="android:actionBarStyle">@style/CustomActionBarStyle</item>
            <item name="android:windowBackground">@color/background</item>
            <item name="android:actionOverflowButtonStyle">@style/CustomActionOverflowButtonStyle</item>
        </style>
    
        <style name="CustomActionBarStyle" parent="@android:style/Widget.ActionBar">
    
            <!-- Change action bar background color -->
            <item name="android:background">@color/background</item>
            <item name="android:titleTextStyle">@style/CustomTitleTextStyle</item>
        </style>
    
        <style name="CustomTitleTextStyle" parent="@android:style/TextAppearance.Holo.Widget.ActionBar.Title">
            <!-- Change action bar title color -->
            <item name="android:textColor">#ffffff</item>
        </style>
    
        <style name="CustomActionOverflowButtonStyle" parent="@android:style/Widget.Holo.Light.ActionButton.Overflow">
            <!-- Change overflow button background color -->
            <item name="android:background">@color/background</item>
        </style>
    
    </resources>
    
    
    2022-11-12 01:52 回答
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有