I finally got it working!  You need to have onDown return true.... The call
to return super.onDown(eve) is what was causing it to fail... I was finally
able to find a similar problem on StackOverflow that had the answer:

http://stackoverflow.com/questions/4394025/android-gesturedetector-not-working-gesturedetector-ontoucheventevent-always

On Mon, Feb 28, 2011 at 3:58 PM, Justin Anderson <[email protected]>wrote:

> I would have thought that implementing something like this (a vertical
> swipe on a Gallery) would be something that would have been done already or
> would at least be straightforward, but apparently not...
>
> I have posted a question on StackOverflow as well without any luck.
>
> Oh well... I'll keep tinkering away and if I can come up with a good way of
> doing this I will post it here for any others that may want to implement
> something similar.
>
>
> On Wed, Feb 23, 2011 at 4:08 PM, Justin Anderson <[email protected]>wrote:
>
>> I thought that it might be a conflict between my custom Gallery and the
>> actual views in the Gallery so I tried setting this to no avail:
>>
>> setDescendantFocusability(ViewGroup.FOCUS_BEFORE_DESCENDANTS);
>>
>> I was thinking that if the Gallery is given focus first then perhaps the
>> motion events would get triggered first...
>>
>>
>> On Wed, Feb 23, 2011 at 1:18 AM, MagouyaWare <[email protected]>wrote:
>>
>>> Not sure why this double posted... Anyway, one thing I just noticed:
>>> The if-statement in my onDown() method is no longer there.  That
>>> method used to be an onTouch() and that is why it was there.
>>>
>>> Doesn't impact the behavior at all... I just wanted to address this so
>>> people don't get hung up on that little inconsistency instead of the
>>> real issue.
>>>
>>> Thanks,
>>> Justin
>>>
>>> --
>>> 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
>>>
>>
>>
>

-- 
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

Reply via email to