HorizontalScrollView with snapping effect

僤鯓⒐⒋嵵緔 提交于 2020-01-16 08:37:51

问题


Is it possible to make HorizontalScrollView with snapping effects for each view inside it? (Not gallery)


回答1:


Nowdays you should use ViewPager or RecyclerView.

Old answer:

I used this one - http://www.dev-smart.com/archives/34 Very fast and compatible with lazy loading.




回答2:


You try to use ViewPager instead




回答3:


Have a look at below posts for sample codes. Still, most use ViewPager for the effect.

  • http://androidprogrammingmadeeasy.blogspot.jp/2011/08/creating-custom-horizontal-scroll-view.html
  • http://www.velir.com/blog/index.php/2010/11/17/android-snapping-horizontal-scroll/


来源:https://stackoverflow.com/questions/9467145/horizontalscrollview-with-snapping-effect

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!