Difference between ScrollView and ListView?

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

Up vote 0 down vote favorite share g+ share fb share tw.

Thanks android android-listview android-scrollview link|improve this question asked Mar 22 at 10:43Farooq Arshed31.

For listview Read androidtrainningcenter.blogspot. In/2012/01/…. Clearly Listview is more efficient – Sameer Mar 22 at 10:48.

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.

A ListView is backed by an Adapter, which contains a DataSource. This allows you to easily display data in rows. A ScrollView allows you to put content inside of it, and if the content exceeds the size of the ScrollView, it will allow the user to scroll.

They both have their uses, but it depends on what you are trying to do.

They're completely different. A ScrollView is simple a scrolling container you can use to scroll whatever you put inside it, which might be a list of items, or it might not. developer.android.com/reference/android/... A ListView is very specifically designed to hold lists, where items typically look the same (or at least follow a pattern, e.g. Section headings).

ListView is also designed to connect to a data source of some sort, SQLite, array, content provider etc. ListView can scale to handle enormous numbers of list items. developer.android.com/resources/tutorial... If you have data you need to show in a list, use a ListView. If you just need scrolling content, then a ScrollView is probbaly enough.

ScrollView simply places its contents in a scrollable container, you can edit it's contents only by adding views to it. ListView is a class that uses an adapter which handles creating the views for your data objects, you only need to edit the data, and the layout modifications are done automatically by the adapter. ScrollView should be used when you have a screen (ex: a form with multiple fields) that do not fit into one screen on small devices, as such scrollview offers the user the possibility to scroll down.

ListView should be used when representing sets of data. You can read about these at developer.android.com/guide/index.html.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions