How would you implement different color themes in your app?
All I can see now is plain set color onCreate every activity and control…
Also, how would you store different color schemes in xml?
Just an entries of with different names?
Thank you!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use custom Themes, which are declared in XML. They are very similar to CSS, if you’ve used them before.
EDIT:
Here’s a better example of changing the theme at run time