O'Reilly logo

Xamarin Mobile Application Development for Android by Mark Reynolds

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

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 ...

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