Android horizontal scrolling container like Gallery

丶灬走出姿态 提交于 2020-01-04 04:11:21

问题


First of all, sorry for my bad english. Hope to understand about that.

Please check below url what I want to do.

I want to make horizontal scroll viewer like Gallery. But Gallery is deprecated now. So I am going to find other scrollable container such as HorizontalScrollView or HorizontalListView instead of Gallery.

Scrollable container should have property for center-locking, velocity and every child item's width can be able to adjusted dynamically.

I think we can use HorizontalListView or HorizontalScrollView, ViewPager. But there are issues with them. HorizontalListView or HorizontalScrollView doesn't have "center-locked" function and ViewPager doesn't have veolocity function. I researched VeolocityViewPager also, but there is no touch event handler for child items.

Best example of this is pulse news reader :- https://market.android.com/details?id=com.alphonso.pulse


回答1:


I just found the way myself. Please use EcoGallery project on the github. https://github.com/falnatsheh/EcoGallery




回答2:


Check this project on github. It should help you with horizontal scrolling.



来源:https://stackoverflow.com/questions/16050190/android-horizontal-scrolling-container-like-gallery

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