Default color of app

Asked

Viewed 258 times

1

Hello,

I need to find how to set the default color of apps. It wouldn’t be the background or font color, it would be the same app color.

For example: in led settings, have the option to show the led according to the app color( Whats app green, facebook blue, etc).

How to set this color programmatically?

Thank you.

  • Are you referring to the color of Toolbar ? If that is so, you can change them in the Colors.xml file in the values folder, there you will find <color name="colorPrimary">#ff8e2b</color> <color name="colorPrimaryDark">#ff7700</color> just replace the hexadecimal by the one of the color you want

1 answer

0


In your manifest.xml you need to rename your theme. you can choose other existing themes or create your own in Colors.xml.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.