Android水平滚动列表
可能的重复:
Android 中的水平 ListView?
我想要像 Gallery 一样水平滚动。我不使用画廊,因为它的中心被锁定。
这里有人可以帮我解决这个问题吗?所以我可以有水平滚动列表?
我认为最好的例子是脉冲新闻阅读器:- https://market.android.com/details?id=com.alphonso。脉冲
谢谢:)
Possible Duplicate:
Horizontal ListView in Android?
I want horizontal scroll like Gallery. Im not using Gallery because its center locked.
Can some one here would help me out with this So I can have horizontal scrolling list?
I think best example of this is pulse news reader :-
https://market.android.com/details?id=com.alphonso.pulse
Thanks :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
http://developer.android.com/reference/android/widget/HorizontalScrollView。 html?
编辑:好的,在发现我不需要做 RTFM 帖子后,我搜索了一下,之前已经有人问过这个问题:
Horizontal ListView在Android中?
并且已经在这里实现:
http://dev-smart.com /?p=34
http://developer.android.com/reference/android/widget/HorizontalScrollView.html ?
EDIT: Ok after finding out i don't need to do a RTFM post i searched around a bit and this has been asked before here:
Horizontal ListView in Android?
And has already been implemented here:
http://dev-smart.com/?p=34
我在 ScrollView 和 HorizontalScrollView 的帮助下创建了一个视图,至少可以给您一个开始。下面是该代码的 XML:
加上 java 代码:
我也尝试上传一些屏幕截图,但我猜它被我的网络防火墙阻止了。所以稍后会上传它们。
希望这有帮助!
I have created a view with the help of ScrollView and HorizontalScrollView to give you atleast a start. Here is the XML of that code:
Plus java code:
I tried uploading some screenshots also but i guess it was blocked by my network firewall. so will upload them later.
Hope this helps!!
在 Horizontal LinearLayout 中,您可以添加所有视图...
Inside the Horizontal LinearLayout you can add all your views...
下载Pulse apk,使用dex2jar + JD-GUI反编译,看看他们是怎么做的!
摘录:
一位好心的先生/女士稍后可以用这个为我们大家写一个关于实现的教程吗? :-)
Download Pulse apk, decompile using dex2jar + JD-GUI and take a look how they do it!
Excerpt:
Can a kind gentleman/lady later use this to write us all a tutorial on the implementation? :-)
你不能改变图库中的
android:gravity
吗?Cant you change the
android:gravity
in Gallery?