Setting Style of underlying TextViews in style.xml

Change the theme definition ((stored in res/values/styles.xml):

<?xml version="1.0" encoding="utf-8"?> 
<resources>   
<style name="MyTheme" parent="android:Theme.Light">    
    <item name="android:textAppearance">@style/MyDefaultTextAppearance</item> 
</style>    
     <style name="MyDefaultTextAppearance" parent="@android:style/TextAppearance">    
     <item name="android:textSize">12sp</item>     
    <item name="android:textColor">#333</item>    
     <item name="android:textStyle">bold</item>   
    </style> 
    </resources>

Inflate your TextView for example:

*textview.xml*

<?xml version="1.0" encoding="utf-8"?>
<TextView 
 style="@+style/MyLinearayoutStyle"
 />

and

activity.getLayoutInflater().inflate(R.layout.textview,(parent view), true);