Scrolling in HorizontalScrollView

by Arjun » Tue, 07 Dec 2010 07:43:07 GMT

Sponsored Links

I have a linear layout inside a horizontal scroll view.  linear layout
has n number of images.

I am facing problem with horizontal scrolling, As soon as the user
flings, depending upon the velocity the scroll view scrolls. But my
requirement differs with the default horizontal scroll view
scrolling.  My requirement is "whatever may be the fling velocity"
user has to be shown the next three images depending upon the fling

Hence I have extended Horizontal scroll view and override fling, such
that I can scroll to the next three images, by specifying the number
of pixels it should move horizontally using scrollTo(px,px);

The above operation is not giving the expected behavior. Any thoughts
on this would be really helpful.



Re: Scrolling in HorizontalScrollView

by TreKing » Wed, 08 Dec 2010 22:56:40 GMT


Why not use a Gallery?

TreKing <> ; - Chicago
transit tracking app for Android-powered devices


Sponsored Links

Re: Scrolling in HorizontalScrollView

by prudhvi » Fri, 14 Jan 2011 21:18:41 GMT 

theres a builtin widget called viewflipper.. could be usefull a lot.