2

Possible Duplicate:
How to programmatically setting style attribute in a view

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

Community
  • 1
  • 1
nourdine
  • 7,407
  • 10
  • 46
  • 58

0 Answers0