3

Using the design lib 22.2.0, how can I manage to put the content behind the StatusBar (in my case it's a map) and to color the StatusBar in semi transparent primary dark color (could be semi transparent red)

See picture from another SO post:

enter image description here

I'm not using the ScrimInsetFrameLayout.

I tried setting fitsSystemWindows="false" on the DrawerLayout so my content can lay behind the status bar but the color isn't applied to it.

If I set fitsSystemWindows="true" applies the color to the StatusBar but the content does not lay behind it.

ref: https://stackoverflow.com/a/26932228/1228221

Community
  • 1
  • 1
Benoit
  • 4,549
  • 3
  • 28
  • 45

1 Answers1

0

This question is a duplicate:

The answer in this post works: Lollipop : draw behind statusBar with its color set to transparent

Community
  • 1
  • 1
Benoit
  • 4,549
  • 3
  • 28
  • 45