Android design library 22.2.0 status bar semi transparent dark primary with the content behind 状态栏

标签 android androiddesignsupport android-statusbar

<分区>

使用 design lib 22.2.0,我如何设法将内容放在 StatusBar 后面(在我的例子中是 map )并为 StatusBar 半透明原色深色(可以是半透明红色)

请参阅另一个 SO 帖子中的图片:

enter image description here

我没有使用 ScrimInsetFrameLayout

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

如果我设置 fitsSystemWindows="true" 将颜色应用到 StatusBar 但内容不会隐藏在它后面。

引用:https://stackoverflow.com/a/26932228/1228221

最佳答案

这个问题是重复的:

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

关于Android design library 22.2.0 status bar semi transparent dark primary with the content behind 状态栏,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30862510/

相关文章:

Android 设计支持库 TabLayout 使用自定义选项卡布局但布局包装选项卡

java - 像 Uber 一样透明的操作栏和状态栏

android - 透明状态栏android

android - 使用 Retrofit 进行连续的 api 调用并返回 observable

android - 在 Linux 上使用 ADB 安装多个 APK

android - 我可以为 android-support-design 小部件设置应用程序全局自定义样式吗?

android - CoordinatorLayout.Behavior 回调不触发

android - StatusBar 在键盘出现时显示

android - 如何在 android 中使用 addTextChangedListener 处理多个 EditText

android - ImageButton OnClickListener 不工作