Using the list fragment for displaying the POI list

So far, we have created a fragment using the Fragment subclass to display the details of the point of interest. Let's now use a specialized ListFragment class to create a new fragment to display the POI list fetched from the server.

Understanding ListFragment

Before we start creating the POIListFragment, let's understand the following key concepts of ListFragment:

  • ListFragment is a specialized Fragment subclass used to display the list of items from different data sources, such as an array or a cursor, that hold the query results.
  • ListFragment provides a default layout that contains a single list view. However, it can be customized using your own custom layout.
  • While using a custom layout for ListFragment ...

Get Xamarin Mobile Application Development for Android - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.