99 percent of applications are using a control that you can scroll and view a collection of data. This collection of data, sometimes more than one type, can be represented in many ways to show the corresponding information. In this chapter, we will see how the Xamarin.Forms ListView
control works with our collections.
A collection is a stream of data and the ListView
control in Xamarin.Forms helps significantly with how we present the data to the user in a vertical scrollable area, and enable actions such as adding, removing, or editing rows. This is certainly one of the most important controls that you will spend a lot of time on during the development of any project.
The Xamarin.Forms ListView
is translated in the native control for each platform: a UITableView
for iOS, a ListView
for Android, and a LongListSelector
for the Windows Phone platform.
We will investigate the simple setup of a ListView
setting a collection and its default layout; how to select, add, and remove a row...