O'Reilly logo

Xamarin Mobile Application Development for Android - Second Edition by Nilanchala Panigrahy

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required