<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="detaileventTitle">
<item name="android:layout_width">fill_parent</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:textColor">#000000</item>
<item name="android:textSize">14dp</item>
<item name="android:textStyle">bold</item>
</style>
</resources>
I have the style above which I usually apply by adding style="@style/detaileventTitle" to my textview xml. However, my textviews are created dynamically. How do I apply this style to the textviews?