I have an existing style defined in my android application. This is based out of colors defined in my colors.xml. I have a usecase to set the theme color programatically which i could using SharedPreferences but how can i use that color to define styles programatically ?
Asked
Active
Viewed 59 times
0
-
getResources().getColor(R.color.my_coolr); ? – Stan Feb 08 '14 at 12:56
-
styles deal with the state of the action as well. How about those ? – lokoko Feb 08 '14 at 12:59
-
see http://stackoverflow.com/questions/3084439/android-change-style-dynamically – Shayan Pourvatan Feb 08 '14 at 13:05