Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

App with white toolbar and dark text

I have been trying to achieve this in a project with minSDK 16 :

Actionbar and statusbar in White color with dark text and icons.

Like this:

enter image description here

I have been trying to figure this out for ages now. Google searches lead to a lot of answers that dont make any sense and/or dont support older api's. colorControlNormal, titleTextColor, Appcompat-this, Appcompat-that... its a nightmare!

I am also not able to find any docs on what items to put in my styles xml, and none of the combinations of style properties I tried seem to have any effect whatsoever.

So can someone please give me a proper and well explained walkthrough as to how I can acheive this effect?

Thanks.

like image 905
ShahiM Avatar asked Oct 29 '25 05:10

ShahiM


1 Answers

you can try with that

<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
    <item name="android:statusBarColor">@color/white</item>
    <item name="android:windowLightStatusBar">true</item>
</style>

but API min is 23.

Also, don't forget to use different styles for different versions of APIs so far I haven't found an app that works as you want, so most probably isn't possible.

like image 147
gmetax Avatar answered Oct 30 '25 21:10

gmetax



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!