balysv / material-ripple

Android L Ripple effect wrapper for Views
Apache License 2.0
2.36k stars 478 forks source link

How to define attributes in styles.xml? #57

Open khawarraza opened 8 years ago

khawarraza commented 8 years ago

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

zaplitny commented 8 years ago

You can do it in this way

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