I'd like to make my font sizes configurable but i'd also like to make use of the style tag in my layouts. Is it possible to change the definition of a style at runtime? or is the only option to manually change the individual style elements on each textview etc.?
A:
I'm not sure if this will work in your case, but you can create themes that define your styles. There's Activity.setTheme()
which you pass in a theme XML file. The theme contains a bunch of definitions.
I've only used it to override certain global styles, like background color, I don't know if you can use it to define styles that your widgets will use. It's worth giving it a shot though. If it works, please let me know!
EboMike
2010-07-13 22:12:09
cool, thx for the tip.
Ben
2010-07-13 23:44:54