Alexander Oleynikov
Alexander Oleynikov

Reputation: 19378

Applying style dynamically

I'd like to dynamically apply styles to my views at runtime. Is there any method like View.setStyle(int style)?

Thanks

Upvotes: 5

Views: 1284

Answers (1)

Sephy
Sephy

Reputation: 50392

There is no way at this time to set a Style dynamically. You might want to set all parameters for a style in one method and apply it to your View, but apart from that, there is no equivalent of a setStyle method. Check here for full discussion.

Upvotes: 4

Related Questions