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 fragments for displaying POIDetails

In order to make things simple, we will move step by step. First, let's create a new fragment to display the details of the POI, and this will enable you to edit, update, and delete the POI. Currently, the POIDetailActivity activity contains the same logic. At this point, let's keep it simple and not complicate things by thinking about the multi-pane tablet layout.

Creating the POIDetailsFragment layout

Let's begin with creating a new layout file for the POI details fragment and name it POIDetailFragment.axml:

  1. Select the Resources/Layout folder in the Solution pad.
  2. Right-click on Add and select New File.
  3. In the New File dialog box, click on Android and select Layout, enter POIDetailFragment in the Name field, ...

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