What’s the main difference between ScrollView and ListView indeed? How to choose ?
The list view “virtualize” the display on the list so that if the list has 2000 entries and that only 4 of them are visible, only 4 of them will exist. And they will be reused as you scrolls.
In a scroll view, all items exist all the time and need to be generated on the first frame. More geometry to store, more style to be applied, etc…
The list view is harder to use, is less flexible and requires c#code, but has better performance.
Thanks, very clearly explanation. Is there a general criteria of when to choose listView ? I have 300 button to scroll, listView or scrollView?
It always depends on what you are displaying in each element. I’d go with a broad rule of thumb more than 3 to 4 screens of stuff, go with ListView. These are not hard numbers though, YMMV
Thanks, I see.