you can use a separate xml file, say for example, "
styles.xml", and put your styles in it. For example, the content of the
styles.xml will be:
<resources>
<style name="sample_style">
<item name="android:layout_width">fill_parent</item>
<item name="android:orientation">horizontal</item>
<item name="android:background">@drawable/samplebackground</item>
</style>
<style name="sample_style2">
!-- ....
</style>
</resources>
and assign it to the image view:
<imageview>
style="@style/sample_style"
android:src="@drawable/ic_launcher"
/>
</imageview>
hope this helps...:-)