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
- Select the
Resources/Layoutfolder in the Solution pad.
- Right-click on Add and select New File.
- In the New File dialog box, click on Android and select Layout, enter
POIDetailFragmentin the Name field, ...