Android 22.2.0 design panel. The status bar is semi-transparent and dark, with content behind the status bar.
Using design lib 22.2.0
how can I put the content behind StatusBar
(in my case it is a map) and color StatusBar
to a semi-transparent primary dark color (could be semi-transparent red)
See image from another SO post:
I am not using ScrimInsetFrameLayout
.
I tried to set fitsSystemWindows="false"
to DrawerLayout
, so my content might depend on the status bar, but no color is applied to it.
If I set fitsSystemWindows="true"
applies the color to StatusBar
, but the content doesn't lie behind it.
source to share
This question is a duplicate:
The answer in this post works: Lollipop: paint the statusBar with color set to transparency
source to share