在图像视图的列表水平滚动 [英] Horizontal scroll over a list of Image views

查看:215
本文介绍了在图像视图的列表水平滚动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

经过几个第三方以及Android的默认组件会后,我不能找到一种方法,通过它我可以实现的动态水平滚动列表视图其中列表是处理图像的URL列表我的自定义适配器。

After going through several third party as well as android default components I can't find a way through which I can implement a dynamic horizontal Scroll List View where the List is a list of image urls handled by my custom Adapter.

我甚至试过这个 DevSmartLib - Android电子但这个片段多年平均值的工作。我真的不能找出原因,但渲染视图没有被用在片段显示,但它正常工作与简单的Acitvity。

I even tried this DevSmartLib - Android but this doesnot work with fragment. I can't really figure out the reason but the rendered view is not being shown with the fragment but it works fine with simple Acitvity.

其他possibilites是:

Other possibilites are:


  • 图库视图

  • Gallery View

它已经通过德在Android的API pciated $ P $ - 16

水平滚动查看以网格视图作为它的根元素

Horizontal Scroll View with a Grid View as its root element

我没有带试过,但基础上,开发者社区,我认为我们不能取得水平滚动,即使我们强制网格视图是一个行的

有没有人这样做过,或任何一个可以帮我这个因为所有我需要的是有过的,我从Facebook获取图像视图列表水平滚动。

推荐答案

水平滚动查看,如果你只有几个项目是唯一的好。如果你有很多,你应该考虑一种替代方案:一个 <强> ViewPager (如果你希望只显示一次单个项目),或第三方库像的 水平变的ListView 。我敢肯定还有其他的替代品。

Horizontal Scroll View is only good if you have just a few items. If you have a lot, you should consider an alternative: a ViewPager (in case you wish to show only a single item at a time), or a third party library like "Horizontal Variable ListView". I'm sure there are other alternatives.

注意,画廊的看法是非常低效和马车,所以你甚至不应该尝试使用它。

note that the Gallery view is very inefficient and buggy so you shouldn't even try to use it.

这篇关于在图像视图的列表水平滚动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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