Added method to set the text color to a resource, such as a color state list. The selected tab will use the color marked for the "state_selected" attribute.