Scrolling in HorizontalScrollView

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


Sponsored Links
 Greetings,

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
direction

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.

Thanks,
Arjun.

-- 



Re: Scrolling in HorizontalScrollView

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


 



Why not use a Gallery?

-------------------------------------------------------------------------------------------------
TreKing < http://sites.google.com/site/rezmobileapps/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


  http://www.codeshogun.com/blog/2009/04/16/how-to-implement-swipe-action-in-android/ 

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





--