I am facing a problem to calculate the diagonal swipe events in the android view.
Can any one give me some logic to identify the Diagonal gestures.
My Requirement is: Once the user swipe diagonally on the phone i need to trigger different events.
Like:
1) TopLeftToBottomRight.
2) TopRightToBottomLeft.
3) BottomLeftToTopRight.
4) BottomRightToTopLeft.

Please,Can any one have some logic to handle all these.
Sample application will be appreciated. Help me out of this i need to complete this task ASAP.
Thanks in advance.