I'd like to put my notification bar transparent, I have a Samsung A5 2016 and on my home screen I have the notification bar transparent, I don't know if other devices have different notification bar color, but I'd like to get the current one and dynamic change it depending of the device.
First of all I've removed the ActionBar
doing
this.getSupportActionBar().hide();
and it works but the only problem is with notification bar, that it becames to a gray color....
I'm using those styles :
<style name="Theme.AppCompat.Translucent" parent="@style/Theme.AppCompat.Light">
<item name="android:windowNoTitle">true</item>
<item name="android:windowBackground">@android:color/transparent</item>
<item name="android:colorBackgroundCacheHint">@null</item>
<item name="android:windowIsTranslucent">true</item>
<item name="android:windowAnimationStyle">@android:style/Animation</item>
<item name="android:windowContentOverlay">@null</item>
</style>