滚动视图的LinearLayout和ListView [英] scrollView linearlayout and listview

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

问题描述

我在做Android应用程序,而我只是想有一个滚动的布局,但这个布局里面我想把一些的TextView和2的ListView,这是我的问题,列表视图。

I'm doing an android app, and I just want to have an scrollable layout, but inside of this layout I want to put some textView and 2 listView, and this is my problem, the listView.

我需要包括在布局这2列表视图,这是强制性的,需要被滚动的,而我使用Google和所有我发现是负的。

I need to include this 2 listview on the layout and this is obligatory need to be scrollable, and I googling and all I found is negative.

我怎样才能把2列表视图上滚动视图?不可能?如果其右侧我能做些什么呢?这是我有别的选择吗?我真的desesperated,因为我整天!

how can I put 2 listview on scrollView?? is not possible? and if its right what can i do? Which is the alternative that I have? I really desesperated because I spend all day!!

CON有人说我这样的一个例子?

con someone say me an example of this?

真是感谢!

推荐答案

列表视图不应该放置在滚动型因为的ListView 类实现了自己的滚动,它只是不接收的手势,因为他们全部由母公司得到处理滚动型。然而,你可以添加意见要滚动到的ListView 作为页眉或页脚。

ListViews shouldn't be placed inside a ScrollView because the ListView class implements its own scrolling and it just doesn't receive gestures because they all get handled by the parent ScrollView. However you can add views you want to be scrolled to the ListView as headers or footers.

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

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