Hi,
Can you please tell me how can I detect Fling action in my own widget?
I have implemented my widget as OnGestureListener.
And like in Gallery, I have a
"GestureDetector mGestureDetector = new GestureDetector(this);"
For my onTouchEvent(), I have
@Override
public boolean onTouchEvent(MotionEvent event) {
// Give everything to the gesture detector
boolean retValue = mGestureDetector.onTouchEvent(event);
return retValue;
}
But my public boolean onFling(MotionEvent e1, MotionEvent e2, float
velocityX, float velocityY) is never get claeed.
CAn you please tell me why?
Thank you.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---