如何避免间距画廊的起点和终点

编程入门 行业动态 更新时间:2024-10-17 11:21:59
本文介绍了如何避免间距画廊的起点和终点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

解决方案

我会建议你去尝试 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

更多推荐

如何避免间距画廊的起点和终点

本文发布于:2023-11-29 12:08:48,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1646354.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:间距   终点   画廊   起点

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!