Page 15 - Xamarin Android Application Development
P. 15

ListView




               ListView is a ViewGroup that displays a list of items that could be scrollable. We had an interaction
               with a ListView using the ListActivity. We would see few more things about ListView in this chapter.


               Binding Data to ListView



               Previously we had an encounter with ListActivity which had a ListView, and we used a ListActivity
               for displaying data or collection. Here we would use theListView control and bind data or collection
               to it.

               We would need a template for the ListView, so let’s add one.
               Add an XML file to the Layout folder.
   10   11   12   13   14   15   16   17   18   19   20