Unable to Play Lollipop Button Ripple

When a normal button is defined in the XML layout code (android L), it will default to a ripple effect when pressed, which works fine. However, when a specific button is defined and a specific background color is added to the button, the ripple effect is removed. How can I add the ripple button to the button again?

+3


source to share


1 answer


You can set the background property of the button to your own RippleDrawable. See here .



+1


source







All Articles