How can I understand in which direction I am dragging an event?

I want to say that I want to understand how the user drags a finger on the screen in which direction? How can I use the touch event?

+3
source share
1 answer

You can just go through this example. A toast will be displayed when your “Scroll” is on the screen.

Example

-1
source

All Articles