Thanks Roman I shall leave the function alone. It doesn't HAVE to be programmatically it just happens that at the moment when the user flings the list and then places there finger on the list it doesn't stop it keep scrolling bit highlights the selected child in the list. I need it to stop the list with the users finger on the selected child so was looking for a way to stop it through a function call. Is there another way I should be looking at? FYI the list view has not been set to focusable (it doesnt work even if it does have a focusable / focusable touch) all children are focusable (not in touch) and I have overridden the areAllItemsEnabled of the adapter to return false.
Thanks for your help I am tearing my hair out here. Tom On Nov 16, 4:55 pm, Romain Guy <[email protected]> wrote: > That is correct, but sending that event yourself could really screw > with the internal state (maybe not now, maybe in the future.) Why is > it you need to stop the scrolling programmatically? > > P.S: You could try stopping the scrolling by calling setSelection(), > no idea if it works, probably not, but it might > P.P.S: I don't think it's a good idea to stop the scrolling programmatically > :) > > > > > > On Mon, Nov 16, 2009 at 10:49 PM, Loki117 <[email protected]> wrote: > > Roman I am just looking over the AbsListView code now it looks like > > the only way the scroll is going to stop is on the ActionUp event is > > this correct? If so how is it handed in the Google app list they stop > > scroll on finger down. Line 2130 onwards > >http://gitorious.org/android-eeepc/base/blobs/3661101005c6527dfd384d0... > > > On Nov 16, 4:42 pm, Romain Guy <[email protected]> wrote: > >> You can't. > > >> On Mon, Nov 16, 2009 at 9:38 PM, Loki117 <[email protected]> > >> wrote: > >> > Hey guys, > > >> > Anyone know of a way to pass the call to abortAnimation through > >> > ListView? I need a touch on the ListView to stop it from scrolling or > >> > performing the fling animation but it wont work. The only way I can > >> > think to do it is to call abortAnimation. > > >> > Tom > > >> > -- > >> > 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 > > >> -- > >> Romain Guy > >> Android framework engineer > >> [email protected] > > >> Note: please don't send private questions to me, as I don't have time > >> to provide private support. All such questions should be posted on > >> public forums, where I and others can see and answer them > > > -- > > 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 > > -- > Romain Guy > Android framework engineer > [email protected] > > Note: please don't send private questions to me, as I don't have time > to provide private support. All such questions should be posted on > public forums, where I and others can see and answer them -- 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

