Possible Duplicate:
android : set textView style at runtime
i just wanna know how i can implement style in runtime i saw some posts here but i couldnt find anything properly
i create a new Textview , like this
TextView title = TextView(this, null, R.style.TitleSep);
this its my style xml.
<style name="TitleSep">
<item name="android:layout_height">fill_parent</item>
<item name="android:layout_width">wrap_content</item>
<item name="android:lineSpacingMultiplier">1.1</item>
<item name="android:textSize">16sp</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ffff0000</item>
<item name="android:padding">2dip</item>
</style>
Nothing change at all, i saw the api and should be change the style instead i got the default style.
Any advice.
Cheers Ron