Status bar transparent on android?


I would like to have a statusbar with an invisible background.

However when I do this:

statusBar.overlaysWebView (true);
statusBar.styleBlackOpaque ();

I opt for a transparent statusbar but the text (loading bar, time, ect …) is placed on the header …

How to do it since the header has a gradient background?

I just had a padding-top to this and its work BUT the statusbar “overlaysWebView” is resizing after like 3 seconds…