try setSelection
On Mon, Apr 19, 2010 at 5:07 AM, javame_android <[email protected]>wrote: > Hi, > > I have a horizontal scroll view and there are four images in it. Now > what I want is the way to detect which image is focused currently. I > mean, is there any way that we can distinguish between the image that > is focused and other images. Currently all the images look quite > similar. > > One more thing, how to move only to the next image on every swipe or > fling. > > Moreover, I have tried the same thing with Gallery, but I didn't found > anything in the Gallery that let me move to the next view only. In > Gallery, I have tried overriding the onfling method with hardcoded > value for veloctiyX but with no success. Can someone let me know how > to do this? > > Doing the same thing with either Gallery view or HorizontalScrollview > will solve my issue. > > Hope to get the quick response. > > > Regards > Sunil > > -- > 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]<android-developers%[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

