Is there is some way to change the status bar color in android versions below lollipop, such as kitkat? If so, then how can I do it?
3 Answers
See How to change the status bar color in android. Android lollipop introduced the material design allowing the notification color changing you desire.

- 1
- 1

- 839
- 5
- 12
-
There are comments in the link above taking about KitKat. I'm not familiar with this but it looks like api 19+ you can make the color adjustments. – Brian Gerhards Jul 24 '15 at 01:55
You can easily do using the library SystemBarTint. System Bar Tint Sample is a sample app which implements the library.

- 554
- 5
- 15
I found a solution for myself, we need to create styles value for res/values-v19/styles.xml like below
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme" parent="AppTheme.Base">
<item name="android:windowTranslucentStatus">true</item>
<item name="android:windowTranslucentNavigation">true</item>
<item name="android:windowBackground">@color/primary</item>
<item name="android:clipToPadding">false</item>
</style>
</resources>
if we use CoordinatorLayout
as root view we got translucent status bar and navigation bottom bar fade with android:windowBackground
color, if we use general layout like Linear
or Relative
layout we got completely transparent status and navigation bar like we use DrawerLayout
it will give same result. adding android:fitsSystemWindows="true"
in root layout will give content keep inside the application container to avoid collapse or overlapping with status bar or navigation bar.

- 1,759
- 1
- 15
- 31