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 POIDetail layout and activity
  • Binding variables to user interface widgets
  • Navigating between activities
  • Passing data with the Intent class
  • Adding validation and using EditText.Error to display error messages
  • Displaying confirmation prompts
  • Displaying toasts

Creating the POIDetail layout

We will start by creating a new layout:

  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, click on Android and select Android Layout, enter POIDetail in the Name field, and select New.

    By default, layouts are created ...

Get Xamarin Mobile Application Development for Android now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.