Android horizontal scollview behave like iPhone (paging)

Posted by Davide Vosti on Stack Overflow See other posts from Stack Overflow or by Davide Vosti
Published on 2010-04-07T18:51:52Z Indexed on 2010/04/08 9:53 UTC
Read the original article Hit count: 801

Filed under:
|
|
|

I have a LinearLayout inside a HorizontalScrollView. The content is just a image. While scrolling, I need to achieve the same behavior you get when setting the paging option on a the iPhone equivalent of the HSW (scrolling the list should stop at every page on the list, not continue moving).

How is this done in Android? Should I implement this features by myself or there is a particular property to set or a subclass of HSV to implement?

Thanks

© Stack Overflow or respective owner

Related posts about android

Related posts about scrolling