martin-stone / hsv-alpha-color-picker-android

A color picker and a color preference for use in Android applications.
Apache License 2.0
290 stars 60 forks source link

Change the colorPrimary #29

Closed RujjhidHD closed 7 years ago

RujjhidHD commented 7 years ago

Hello, i want to change the colorPrimary with the ColorPicker (values/styles.xml) . This is posible? If yes, can you explain me a little? Actually i have this system in my MainActivity.java and choose the theme via PreferenceScreen

`final boolean Orange = Theme.getInstance(this).setTheme().equals("Orange");

boolean mCreatingActivity = true; if (!mCreatingActivity) { if (Orange) setTheme(R.style.Orange);`

martin-stone commented 7 years ago

If you can change it programmatically then you can do what you like with the value that the color picker sets. However it looks like you can't change colorPrimary dynamically.