Android: Detect if user touches and drags out of button region?

前端 未结 9 1988
孤城傲影
孤城傲影 2020-12-04 16:33

In Android, how can we detect if a user touches on button and drags out of region of this button?

9条回答
  •  春和景丽
    2020-12-04 17:07

    I added some logging in my OnTouch and found out that MotionEvent.ACTION_CANCEL was being hit. That's good enough for me...

提交回复
热议问题