How to avoid spacing in the start and end of Gallery

谁说胖子不能爱 提交于 2019-11-27 07:58:04

问题


I don't want a circular gallery, but instead I don't want to show the free space in the left and right end of the gallery? Is there any possible way I can achieve this?


回答1:


I will suggest you to try HorizontalListView. Its not that good as other android components but proves to be worth in most of the cases

Horizontal ListView implementation has the following features:

Subclass AdapterView so I can make use of adapters
Fast – make use of recycled views when possible
Items are clickable – (accepts AdapterView.OnItemClickListener)
Scrollable
No center-locking


来源:https://stackoverflow.com/questions/6606547/how-to-avoid-spacing-in-the-start-and-end-of-gallery

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