Android:可滚动图库布局
我想要一个可滚动的图片库,占据大部分屏幕。我的图像是大小相同的小图标。我可以有很多图像。一旦最大数量的图像水平填满屏幕,它们应该换行到下一行。如果图像数量超出了垂直方向的容纳范围,则应该可以垂直滚动以查看其他图像。我不确定应该使用什么布局控件来完成此任务。另一个功能(不是必须具备)是图像水平等距分布,并具有相同的边距。有什么建议吗?谢谢。
I would like to have a scrollable image gallery that takes up most of the screen. My images are small icons all of the same size. I can have a lot of images. Once the maximum number of images fills the screen horizontally, they should wrap to the next row. If there are more images than will fit in the vertical direction, then it should be possible to scroll vertically to view additional images. I am not sure what layout controls I should be using to accomplish this. An additional feature (be not a must have), is that the images are equally spaced horizontally with the same amount of margin. Any suggestions? Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试 GridView。
Try a GridView.
使用 GridView。完全适合您的需求。
Use
GridView
. Perfectly fits your needs.