Friday, July 29, 2011

[android-developers] Re: onScroll not triggered after onLongPress

Hi All,

Just FYI, I found that you need to turn off the long press detection
in GestureDetector using setIsLongpressEnabled. This way, subsequent
events after long press will be triggered. However, there will be no
long press generated automatically and you need to make it yourself.

Cheers,
Frank

On Jul 25, 5:53 pm, Frank <frank.android....@gmail.com> wrote:
> Hi All,
>
> I am using GestureDetector to fire some events. Everything works fine
> except for the following:
> If I do a long press and then move my finger (without lifting it and
> scrolling again), long press is fired but not scroll event. Doesn't
> anyone know what is going on here? Is this supposed to be the case? If
> so, what if I do need scroll event after a long press? Thanks a lot.
>
> Regards,
> Frank

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment