I have 2 styles defined inside styles.xml. I want to apply it to a textview. How to implement that using style = "@style/"
You can't. You will have to create a style which combines the two styles. (Or create just one style that inherits from one of your styles, and add the extra data of the second style).
You can make a style that inherit the other style
For example:
<style name="Side_Menu_Button" parent="android:attr/buttonStyleSmall"> <item name="android:layout_width">wrap_content</item> <item name="android:layout_height">match_parent</item> </style>
Where the side_menu_button inherit from all the attribute of buttonStyleSmall
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With