Android ScrollView Vs ListView

I am faced with the implementation of a view where I should load, perhaps almost 100 items in a list. I have a doubt, which is probably the best way to implement it. I already know that ListView processes views, and ScrollView stores everything in memory. The thing is, I was thinking of applying paging to ScrollView to avoid huge load times when the application inflates all the elements.

Applications like Google+, Facebook, Twitter or Linkedin, do you think they use ListView?

thanks

+6
source share
1 answer

ListView is definitely the way to go. It's easier to use than ScrollView, and the swap system doesn't fit the android style.

ListView is designed to create a list of varrying lengths based on an array of information. ScrollView is designed to have a (usually) set number of children in the view (defined in the xml layout).

ListViews do not inflate all items, they inflate, however many can fit on a page at a time. The fastest option with or without paging is ListView. However, if each child is completely different, then ScrollView is the way to go.

+12
source

All Articles