43
Changing the style after creating the view is not supported .. so what you can do is:
Now, when you are dynamically creating the new view you call the constructor that will allow to define a defStyle. Then, you point to the style ID you have just created by pointing to R."the XML file name"."your style ID"
myTextView.setTextAppearance(getApplicationContext(), R.style.boldText);