What is difference ListView and Scrollview

mrjaw

Active Member
Licensed User
Longtime User
Hi!
What is the difference between Scrollview and Listview. I need to load a list from my DB but I dont know what to use it.

Edwin
 

admac231

Active Member
Licensed User
Longtime User
A listview is essentially a list of items, usually used for menus. You can be creative with it thought like adding icons and 2 lines of text rather than one.

list_fade_1.png


If you are just loading text then a listview is the best way to go as there isn't much coding involved in you part.

scrollview2.png

A scrollview on the other hand is quite different. You add other views to a scrollview which allows you to have more elements than what would fit on screen. Say, for example, you wanted to have 50 buttons or a large chunk of text. By using a listview you have a container that is the size of the screen but allows the user to scroll up and down to see the other views.

The easiest way to look at them is a scrollview is basically a listview that has pre-determined elements that you can add to but a scrollview lets you do whatever you feel like.
 
Upvote 0
Top