如何避免间距画廊的起点和终点 [英] How to avoid spacing in the start and end of Gallery

查看:93
本文介绍了如何避免间距画廊的起点和终点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不希望有一个圆形的画廊,而是我不希望显示在画廊的左,右端的自由空间?有没有我可以做到这一点任何可能的方式?

解决方案

我会建议你去尝试 Horizo​​ntalListView 。它并不像其他Android组件不错,但被证明是值得在大多数情况下,

  

水平的ListView实现了   以下特点:

 子类适配器视图这样我就可以使用适配器
快速 - 使回收的观点尽可能的使用
项目是点击 - (接受AdapterView.OnItemClickListener)
滚动
无中心锁
 

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?

解决方案

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

这篇关于如何避免间距画廊的起点和终点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆