Invalid Android touch event snooping

when setting OnTouchListener for a View, if a user releases the finger after the finger is pressed (not released), and then slides out of the View, the MotionEvent.ACTION_UP event of the view cannot be triggered. Is there any other way to listen for the finger release event in this case.

Jul.24,2021

give an idea to get the coordinates in the sliding event to determine whether the boundary is exceeded or not. Is it all right to judge like this?

Menu