【问题标题】:how to set white translucent color to status bar如何将白色半透明颜色设置为状态栏
【发布时间】:2019-01-04 19:20:12
【问题描述】:

当我设置时

<item name="android:windowTranslucentStatus">true</item>

状态栏变成黑色半透明,但我需要白色

sample

【问题讨论】:

    标签: android android-layout android-statusbar


    【解决方案1】:

    这就是你需要的。只需将这行代码添加到您的主 java 文件中:

    getWindow().setFlags(
        WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS,
        WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS
    );
    

    【讨论】:

    • 不,我需要白色半透明颜色状态栏。我有底部导航。所以这不是我的问题的解决方案
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-11-06
    • 2017-06-02
    • 2018-06-28
    • 1970-01-01
    • 1970-01-01
    • 2018-08-12
    • 2013-09-28
    相关资源
    最近更新 更多