【问题标题】:How to make navigation bar and status bar looks like a white scrim?如何让导航栏和状态栏看起来像白色的纱布?
【发布时间】:2018-12-05 22:51:20
【问题描述】:

在我的主题中,我设置了

<style name="AppTheme">
  <item name="android:navigationBarColor">#1affffff</item>
  <item name="android:windowLightNavigationBar">true</item>
  <item name="android:windowTranslucentNavigation">true</item>
  ....
</style>

但如果我将android:windowTranslucentNavigation 设置为true,则不会显示白色,它将是灰色的稀松布。我希望内容可以显示在导航栏、状态栏和工具栏后面,但是在这些 xxxxxbar 上加上白色纱布,我该怎么做?

【问题讨论】:

    标签: android android-statusbar android-navigation-bar


    【解决方案1】:

    之所以这样,是因为您的操作栏不在您的布局之上,而是在窗口背景之上,将此行添加到您当前的样式中:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-03-26
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多