Android Translucent status bar with Inverted icons

Viewed 6114

I was wondering how one could achieve Google Calendar's look.enter image description here

That is:

  • Inverted status bar icons
  • Custom status bar color(that is not the default color transparency set by windowTranslucentStatus)
  • Widgets top padding adjusted to be under the status bar

What I've tried:

Setting windowTranslucentStatus disables windowLightStatusBar:

<item name="android:windowDrawsSystemBarBackgrounds">true</item>
<item name="android:windowLightStatusBar">true</item>
<item name="android:windowTranslucentStatus">true</item>

Allows full transparency only(no colors in between), fitSystemWindows doesn't work properly:

<item name="android:windowLightStatusBar">true</item>
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
<item name="android:statusBarColor">#19000000</item>

window.setFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS, WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS)

Thanks.

4 Answers
Related