我怎样才能把一个ListView成滚动型没有它崩溃?ListView

由网友(不是什么野草都叫四叶草)分享简介:我已经搜索周围解决这一问题,唯一的答案我能找到似乎的不要把一个ListView成滚动型。我还没有看到任何真正的解释的为什么的虽然。我似乎可以找到的唯一原因是,谷歌不认为你应该想这样做。好吧,我做的,所以我做到了。I've searched around for solutions to this problem, a...

我已经搜索周围解决这一问题,唯一的答案我能找到似乎的不要把一个ListView成滚动型。我还没有看到任何真正的解释的为什么的虽然。我似乎可以找到的唯一原因是,谷歌不认为你应该想这样做。好吧,我做的,所以我做到了。

I've searched around for solutions to this problem, and the only answer I can find seems to be "don't put a ListView into a ScrollView". I have yet to see any real explanation for why though. The only reason I can seem to find is that Google doesn't think you should want to do that. Well I do, so I did.

所以,问题是,你怎么可以把一个ListView成滚动型没有它折叠到最小高度?

So the question is, how can you place a ListView into a ScrollView without it collapsing to its minimum height?

推荐答案

使用的ListView ,使之不能滚动是非常昂贵的,违背了整个目的的ListView 。你不应该这样做。只需使用的LinearLayout 代替。

Using a ListView to make it not scroll is extremely expensive and goes against the whole purpose of ListView. You should NOT do this. Just use a LinearLayout instead.

阅读全文

相关推荐

最新文章