水平和垂直滚动的ListView无论是在Android版 [英] Scrolling ListView Horizontally and Vertically Both In Android

查看:106
本文介绍了水平和垂直滚动的ListView无论是在Android版的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我被充气XML文件创建一个ListView ,,我想滚动横向和纵向我的内容都躲在屏幕的左侧部分名单。

I am creating a listView by inflating a xml file,,I want my list to be scrolled Horizontal as well as Vertically my content are hiding in left part of screen.

有人能告诉我如何水平滚动列表。??

Can someone tell me how to scroll a list horizontally.??

更新

我可以使用 Horizo​​ntalScrollView 但是,这将滚动horizo​​ntally.I希望两个滚动条是启用

I can use HorizontalScrollView But it will scroll horizontally.I want both scrollbar to be enable

推荐答案

而不是使用的ListView 使用画廊 - 这将是滚动的水平,并且可以在充满DATAS相同的方式,在的ListView

Instead of using ListView use Gallery - it will be scrolled horizontal, and can be filled with datas in the same way as the ListView.

编辑:看看这个帖子:?在Android中水平的ListView ,有$ C你需要什么$ C样品。

Look at this post: Horizontal ListView in Android?, there are code samples of what you need.

这篇关于水平和垂直滚动的ListView无论是在Android版的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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