在机器人垂直图库 [英] Vertical gallery in android

查看:142
本文介绍了在机器人垂直图库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发一个应用程序,为此,我需要一个画廊在垂直模式,而不是水平模式进行设置。我的问题是,有没有可能对我表现出垂直画廊样的小部件呢? 任何帮助是AP preciated。

i am developing an app, for which I need a gallery to be set in vertical mode instead of horizontal mode. my question is, is there any possibilities for me to show a vertical gallery kind of widget? Any help is appreciated.

推荐答案

你为什么不创建的列表视图 自定义适配器?如果定义的自定义适配器有一个ImageView的那么这将是相同的垂直库视图。所以一旦你定义了该适配器,那么你将有1 ImageView的每一个项目,所以它看起来像垂直的画廊视图。

Why dont you create a custom adapter for the listview? If you define a custom adapter with one imageview then it will be same as vertical Gallery view. So once you define this adapter then you will be having 1 imageview per one item so it will look like vertical gallery view.

仅供参考,这里是一个<一个href="http://stackoverflow.com/questions/541966/android-how-do-i-do-a-lazy-load-of-images-in-listview/3068012#3068012">listview用图片,您可以使用相同的列表视图,用它玩了。

FYI, here is a listview with image, you can use the same listview, play with it.

这篇关于在机器人垂直图库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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