gpt4 book ai didi

android - Horizo​​ntalScrollView 与 ListView——文档错误?

转载 作者:行者123 更新时间:2023-11-30 04:46:32 25 4
gpt4 key购买 nike

Horizo​​ntalScrollView 的文档如下:

You should never use a HorizontalScrollView with a ListView, since ListView takes care of its own scrolling. Most importantly, doing this defeats all of the important optimizations in ListView for dealing with large lists, since it effectively forces the ListView to display its entire list of items to fill up the infinite container supplied by HorizontalScrollView.

这里的推理似乎适用于(垂直滚动的)ScrollView,因为 ListView 也垂直滚动。但是 ScrollView 没有任何这样的警告。 Google 是否将此警告放在了错误的类别中,还是我不明白什么?

最佳答案

关于android - Horizo​​ntalScrollView 与 ListView——文档错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4825086/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com