Make sure you return the correct boolean-values in the other methods
of your OnGestureDetector (onDown, onScroll, etc).

On Mar 18, 2:51 pm, Meryl Silverburgh <silverburgh.me...@gmail.com>
wrote:
> 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to