Push Button Effect

1

I have several buttons in an application and I wanted them to have the same effect of Button when pressed, because they are several buttons, I would like to create a code in JAVA for this and not by the States into XML as it would have to create dozens of different sprites. I saw something about using setOnTouchListener with setColorFilter , any light?

    
asked by anonymous 23.12.2016 / 21:48

1 answer

1

I found what I wanted, it would be selectableItemBackgroundBorderless or as the colleague above said attr/selectableItemBackground , just put in the background of ImageButton .     

28.12.2016 / 13:54