Hi its simple you can do it easily i have done that.
Just getOnTouchListener of of any view/ control type you want to drag.
set its layout params again and set x, y position in layout params. it
will do the rest of the job.

Regards,
Adnan


On Apr 19, 6:07 am, javame_android <su...@softwebsolutions.com> 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 android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to