【问题标题】:Android design library 22.2.0 status bar semi transparent dark primary with the content behind the status bar [duplicate]Android设计库22.2.0状态栏半透明暗原配状态栏后面的内容[重复]
【发布时间】:2015-08-31 23:20:09
【问题描述】:

使用design lib 22.2.0,我怎样才能设法将内容放在StatusBar 后面(在我的情况下,它是一张地图)并将StatusBar 着色为半透明原色(可以是半透明红色)

查看另一个 SO 帖子中的图片:

我没有使用ScrimInsetFrameLayout

我尝试在DrawerLayout 上设置fitsSystemWindows="false",以便我的内容可以放在状态栏后面,但颜色不会应用于它。

如果我设置fitsSystemWindows="true" 将颜色应用于StatusBar,但内容不在其后面。

参考:https://stackoverflow.com/a/26932228/1228221

【问题讨论】:

    标签: android androiddesignsupport android-statusbar


    【解决方案1】:

    这个问题是重复的:

    这篇文章中的答案有效: Lollipop : draw behind statusBar with its color set to transparent

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-04-07
      • 2017-07-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-02-22
      • 1970-01-01
      相关资源
      最近更新 更多