ScrollView 内的 ListView [英] ListView inside a ScrollView
本文介绍了ScrollView 内的 ListView的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
可能的重复:
ScrollView 内的 Listview 在 Android 上不滚动
我在 ScrollView
中有一个 ListView
问题是 ScrollView
正在滚动但 ListView
没有不滚动.我认为这是因为 ScrollView
.有没有人有解决这个问题的办法?
I have a ListView
inside a ScrollView
and the problem is that the ScrollView
is scrolling but ListView
doesn't scroll. I think this is happening because of that ScrollView
. Does anyone have a solution for this issue?
推荐答案
ListView
具有内置的滚动功能.将其封装在任何其他布局中,例如 LinearLayout
或 RelativeLayout
.
ListView
s have built-in scrolling capabilities. Encapsulate it in any other layout like a LinearLayout
or RelativeLayout
.
这篇关于ScrollView 内的 ListView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文