[android-developers] Re: Fling on ListView

2009-04-01 Thread matthias
Romain, thanks for pointing out onInterceptTouchEvent()! I'll take a look at that method ASAP. As to the it was meant to be part of the UI design, I really wonder why practically none of the apps shipped with Android use gestures then (I mean, apart from scrolling up or down of course)? I can

[android-developers] Re: Fling on ListView

2009-04-01 Thread Romain Guy
As to the it was meant to be part of the UI design, I really wonder why practically none of the apps shipped with Android use gestures then (I mean, apart from scrolling up or down of course)? We use gestures for scrolling: ListView, GridView, Gallery, MapView, WebView, ScrollView. Calendar

[android-developers] Re: Fling on ListView

2009-04-01 Thread Evan Charlton
On Wed, Apr 1, 2009 at 11:40 AM, Romain Guy romain...@google.com wrote: Using gestures to navigate within an app has a HUGE problem: it is totally undiscoverable. Additionally, it poses a problem with future devices: you shouldn't assume that every device that will run Android will have a

[android-developers] Re: Fling on ListView

2009-03-29 Thread matthias
Well, you can set a OnTouchListener on any view, including ListView, and use a GestureDetector to detect horizontal flings. So, yes, I guess. The problem with this whole touch mechanism in Android is that child views can silently consume the touch gesture, so your fling will not even propagate up

[android-developers] Re: Fling on ListView

2009-03-29 Thread Romain Guy
Doesn't look like fling support as known from the iPhone was ever meant to be part of Android's UI design. Making your app react to flings (or even detect them properly) is a messy and fragile procedure in Android. It was meant to be part of the UI design. And it's not messy nor fragile, you

[android-developers] Re: Fling on ListView

2009-03-24 Thread Romain Guy
ListView does not use a GestureDetector. On Tue, Mar 24, 2009 at 11:03 AM, Lucius Fox lucius.fo...@gmail.com wrote: Hi, Can you please tell me which method in ListView is handling the fling action (up and down)? I look at the source of ListView, I don't see a GestureDectector there.

[android-developers] Re: Fling on ListView

2009-03-24 Thread Lucius Fox
Thanks. Is there a hook for application to get notified when users perform a hort. fling? I see code in AbsListView which handles the vertical fling, but i don't know it does hort fling. And why the OnScrollListener does not listen for hort. fling either? On Tue, Mar 24, 2009 at 11:06 AM,

[android-developers] Re: Fling on ListView

2009-03-24 Thread Romain Guy
What's a hort. fling? Horizontal? ListView does not need horizontal flings and therefore does not detect them nor does it notify of them. On Tue, Mar 24, 2009 at 3:37 PM, Lucius Fox lucius.fo...@gmail.com wrote: Thanks.  Is there a hook for application to get notified when users perform a

[android-developers] Re: Fling on ListView

2009-03-24 Thread Lucius Fox
Thanks. Is it possible to put multiple ListViews inside a Gallery so that I can have each ListView handles the vertical flings and the Gallery handles horizontal flings (scrolls from 1 ListView to another ListView). Thank you again. On Tue, Mar 24, 2009 at 3:54 PM, Romain Guy