I have to set the style for a TextView
which is created programmatically.
How do I implement style="@style/test"
programmatically?
I have looked at the Android developer style documentation already, but it did not answer my question. Any ideas?
Dynamic style change is not currently supported. You must set the style before the view is create (in xml).
setTypeface(Typeface.DEFAULT_BOLD, Typeface.BOLD_ITALIC);
It works for me
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With