Chapter 6. Adding a Detail View
In this chapter, we will walk through creating a detailed view for displaying, updating, and deleting POIs. The following topics will be covered:
- Creating the
POIDetaillayout and activity
- Binding variables to user interface widgets
- Navigating between activities
- Passing data with the
- Adding validation and using
EditText.Errorto display error messages
- Displaying confirmation prompts
- Displaying toasts
Creating the POIDetail layout
We will start by creating a new layout:
- Select the
Resources/Layoutfolder in the Solution pad.
- Right-click on Add and select New File.
- In the New File dialog, click on Android and select Android Layout, enter
POIDetailin the Name field, and select New.
By default, layouts are created ...