Android Modify colors.xml For Different Themes -


I want to change the main color of the application based on user selection.

I have a Color.xml file in which I made a color

    

All components in the application, such as button background etc., use this color for their color.

  android: color = "@ color / myappcolor" / code>  

Is there any way to color code in the colors.xml file? I can change, depending on which application the user applies.

For example to change that the application changes color - I know that a resume application may be required.

  & lt; Color name = "myappcolor" & gt; # FF0000 & lt; / Color & gt;   

If it is not possible to modify colors.xml - can I please suggest other suggestions for obtaining it?

Thank you.

You should keep SQLite or SharedPreference And there are all the colors in the colors.xml shawl, depending on the user option you can dynamically modify the color selection. Use color to apply the theme

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -