Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
106 views
in Technique[技术] by (71.8m points)

android - Difference between ScrollView and ListView

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

question from:https://stackoverflow.com/questions/9820679/difference-between-scrollview-and-listview

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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

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

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...