5

What I Want

I have has got a pre-defined color as the primary and accent color. But not all my users like the color I like. So, I want to create a color chooser with 10-15 predefined colors, which the user can choose to make as his/her primary and accent color.

I have read that the styles.xml file is immutable, so what is the way I can achieve this. I have seen many apps like Talon for Twitter Plus and many more doing this.

How can I do this? A working solution would be really appreciated.

EDIT - The user can select between Light theme and Dark theme. And there will be some preset colors which when selected will change the primary color and accent color of the theme, so that any widget in the app using these two colors get changed automatically.

Aritra Roy
  • 15,355
  • 10
  • 73
  • 107

1 Answers1

-1

Which parts of your app do you want to change?

Easiest way would be to write your colors in a color.xml file and simply change the background colors of your parts.

Ihara
  • 176
  • 2
  • 14