There are a number of ways to populate a
ListView item within the Android platform; they all work with some type of adapter, meaning a subtype of
BaseAdapter or some type of class that implements the
IListAdapter interface. For simple lists, you will commonly see the use of
We will create a subtype of
BaseAdapter<T> as it meets our specific need, works well in many scenarios, and allows for the use of our custom layout.
Prior to creating the adapter, we need to consider how we will get access to an instance of the data service since it will be the source of our POI data. As you may recall from Chapter 4, Creating a Data Storage Mechanism, we simply created an instance ...