Possible Duplicate:
Styling all TextViews(or custom view) without adding the style attribute to every TextView
I have got lots of TextView
s in my app. They have various font sizes, colors, etc. I need to apply android:shadowColor
and android:shadowRadius
to them to have all of them with shadows. How to do it?
E. g., I can make a style for the TextView
s with the necessary properties
<style name="text_views">
<item name="android:shadowColor">@color/tv_shadow</item>
<item name="android:shadowDy">1</item>
<item name="android:shadowRadius">0.7</item>
</style>
and apply it to each TextView
. Is it possible to include properties for the shadows to theme of the application?