Praveen Praveen - 4 years ago 131
Android Question

how to set the Style Attribute Programmatically in Android?

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?

Answer Source

Dynamic style change is not currently supported. You must set the style before the view is create (in xml).

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download