I have a styles called Red and Green and I have an if statment to find out which to apply, but I don\'t know the code to actually apply a style from the java.
It is possible to apply styles programatically to TextViews using setTextAppearance(context, resid) method. (The resId of the style can be found in R.style.YourStyleName)