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
onLongPress
of the button and hide the behind background - Reset the
visitbility
toView.Visisble
once the button long press is released