adding the style attribute via code
Posted
by nourdine
on Stack Overflow
See other posts from Stack Overflow
or by nourdine
Published on 2010-04-19T22:50:28Z
Indexed on
2010/04/19
22:53 UTC
Read the original article
Hit count: 228
android
hello
I was wondering how to assign a style via code in adroid.
suppose I have a TextView created with the following snippet:
TextView myText = new TextView(this);
how do I assign the class xxx so that myText will be styled like an hard coded TextView like this:
<TextView style="@style/xxx" />
thanks
© Stack Overflow or respective owner