I am reading in some data from a REST api and need to generate some buttons based on the information the app receives.
Because I need the same buttons in many Activi
You should do:
setTextColor(getContext().getResources().getColor(R.color.info_button_text_color));