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:

enter image description here

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.

ref: stackoverflow question/18151 / ...

+3


source to share


1 answer


This question is a duplicate:



The answer in this post works: Lollipop: paint the statusBar with color set to transparency

0


source







All Articles