Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Not change the colour of status bar to colorPrimary

Can I prevent the colour of the status bar becoming colorPrimary? I mean, I do not want to change the status bar colour, and leave it as it is (system default). I have searched Google for this, and the answer was hiding the status bar. But I do not want to hide it.

I also do not want to change the primary colour to that of the default colour of the status bar. I need the primary colour as it is for other things. I just do not want it to be applied to the status bar.

I know that was the default behaviour before Lollipop. Is this still possible after Lollipop?

like image 838
Damn Vegetables Avatar asked Dec 14 '25 18:12

Damn Vegetables


1 Answers

This should work

 <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
        <item name="android:statusBarColor">#000000</item>
 </style>
like image 148
toffor Avatar answered Dec 16 '25 09:12

toffor



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!