I want to create a custom button similar to the this
and when I hold press on the button it should animate like this this
CodePudding user response:
The logic is to:
- Create a button and a view behind it, this can be done using
RelativeLayout - List to
onLongPressof the button and hide the behind background - Reset the
visitbilitytoView.Visisbleonce the button long press is released
