ScrollView 和 ListView 的区别 [英] Difference between ScrollView and ListView

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

问题描述

谁能解释一下滚动视图和列表视图的区别?什么时候用哪一种?哪个更有效?

Can any one explain the difference between Scroll View and List View? When to use which one? And which one is more efficient?

推荐答案

ScrollView 用于放置不同或相同的子视图或布局,并且都可以滚动.

ScrollView is used to put different or same child views or layouts and the all can be scrolled.

ListView 用于将相同的子视图或布局作为多个项目放置.所有这些项目也是可滚动的.

ListView is used to put same child view or layout as multiple items. All these items are also scrollable.

Simply ScrollView 适用于同构和异构集合.ListView 仅用于同类集合.

Simply ScrollView is for both homogeneous and heterogeneous collection. ListView is for only homogeneous collection.

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

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