material-ripple icon indicating copy to clipboard operation
material-ripple copied to clipboard

How to define attributes in styles.xml?

Open khawarraza opened this issue 9 years ago • 1 comments

I want to create a style in styles.xml so that I dont have to add those attributes on every place. Can I do that in styles.xml? If yes, please give an example as well. thanks

khawarraza avatar Jan 06 '16 19:01 khawarraza

You can do it in this way

<style name="StyledIndicators.Light" parent="@style/Theme.AppCompat.Light">
        <item name="mrl_rippleColor">#ff0000</item>
</style>

zaplitny avatar Jan 22 '16 11:01 zaplitny