Android : status bar color change for API level below 21

Changing the color of statusbar is available from Lollipop

but actually you could change the color of statusbar for Api >= 19

inside the style of value-v19 put

<?xml version="1.0" encoding="utf-8"?>
<resources>

        <style name="AppTheme" parent="MaterialDrawerTheme.Light">
                <!-- Customize your theme here. -->
                <item name="android:windowNoTitle">true</item>
                <item name="android:windowTranslucentStatus">true</item>
                .....
        </style>
</resources>

the background color of the status bar will became transparent color, and for coloring it you just put a background color in your to your app so the status bar will take that color

hope that was clear and helpful

Changing status bar color feature is only available from Lollipop onwards. Lower OS versions doesn’t have this feature. There is no way for you to change the status bar color in pre lollipop devices.

Status bar coloring is not supported till date in latest version of AppCompat v7:23.1.0 too.

Take a look at Android developers blog post

From the post :

On older platforms, AppCompat emulates the color theming where possible. At the moment this is limited to coloring the action bar and some widgets.

Which means the AppCompat lib will only color status bars on Lollipop and above.

Leave a Comment