0

In my android application, I need to change status bar as transparent with all icons. I do not want to change color or make it translucent.

I want status bar as shown in the image below :

<style name="AppTheme.FullScreen" parent="AppTheme.NoActionBar">
    <item name="windowActionBar">false</item>
    <item name="windowNoTitle">true</item>
    <item name="android:windowTranslucentStatus">true</item>
    <item name="android:windowContentTransitions">true</item>
</style>

enter image description here

Bertrand Martel
  • 42,756
  • 16
  • 135
  • 159
Abdul Qadir
  • 115
  • 1
  • 11
  • Its duplicate of http://stackoverflow.com/questions/27856603/lollipop-draw-behind-statusbar-with-its-color-set-to-transparent – Abhishek Mar 10 '17 at 10:02
  • Possible duplicate of [Lollipop : draw behind statusBar with its color set to transparent](http://stackoverflow.com/questions/27856603/lollipop-draw-behind-statusbar-with-its-color-set-to-transparent) – Manuel Allenspach Mar 10 '17 at 11:18

1 Answers1

0

You can transparent status bar using programatically like this call this in onCreate method

if (Build.VERSION.SDK_INT >= 21) {
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS,
                WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
    }
Mohit Suthar
  • 8,725
  • 10
  • 37
  • 67