Creating the POIDetail layout
So far, we have built the POIApp
to display the list of POIs fetched from the server. Currently, the list view displays limited information about POIs such as name, address, image, and distance. Let's now extend the POIApp
by adding another activity that displays detailed information of the selected POI. The POI details activity will be revealed only when the user taps on any of the POI item from the list or when the user selects the New (+) action from the navigation bar. Additionally, the details activity will allow the user to create a new POI, update, or delete the existing POI.
Keeping all the preceding use cases in mind, let's create a new layout for POI details:
Select the
Resources/layout
folder 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 POI detail in the Name field, and select New.
Notice that a new file is created with LinearLayout
as the top-level container. The POIDetail...