Thanks. I have setup breakpoints for all OnGestureDetector methods.

It did call onDown and I return true for the method.
But onFling still did not get called.

Any other idea?

Thank you.

On Wed, Mar 18, 2009 at 12:17 PM, Streets Of Boston
<flyingdutc...@gmail.com> wrote:
>
> 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