I\'m trying to use the TextView constructor with style like this:
TextView
TextView myText = new TextView(MyActivity.this, null, R.style.my_style);
You can set the style in the constructor (but styles can not be dynamically changed/set).
View(Context, AttributeSet, int) (the int is an attribute in the current theme that contains a reference to a style)
View(Context, AttributeSet, int)
int
Answer from Romain Guy
reference