Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the colorPrimary #29

Closed
RujjhidHD opened this issue Dec 9, 2016 · 1 comment
Closed

Change the colorPrimary #29

RujjhidHD opened this issue Dec 9, 2016 · 1 comment

Comments

@RujjhidHD
Copy link

RujjhidHD commented Dec 9, 2016

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants