Question Detail

How to create Customize Style in android?

6 years ago Views 1237 Visit Post Reply

I want to add Style on Button with the ribbel effect but don't want to use any third party dependency. How can I do this please help?

Thread Reply


- 6 years ago

Copy and paste this in styles.xml file

<style name="MyButton" parent="Theme.AppCompat.Light">  
    <item name="colorControlHighlight">@color/indigo</item>
    <item name="colorButtonNormal">@color/pink</item>

create the button  and use