Android MotionEvent - Cant will find left and right motion event

I am developing one application in which there is an image ... in which I want to move left or right with the mouse ...

for this I found "android.view.MotionEvent", but there are several events in MotionEvent among this

  • ACTION_CANCEL 2. ACTION_DOWN 3. ACTION_UP ...... etc.

therefore, such an event does not exist for the LEFT and RIGHT actions ...

so is there any other way to implement the “LEFT” and “RIGHT” moves?

0
source share
1 answer

You misunderstood class events MotionEvent. ACTION_DOWN, ACTION_UP are equal to the pressed and not pressed events.

, LEFT RIGHT, Gesture Recognition. .

+9

Source: https://habr.com/ru/post/1753357/


All Articles