O'Reilly logo

Mastering Xamarin UI Development - Second Edition by Steven F. Daniel

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

Creating the user interface for our PhotoLibrary app using XML

In this section, we will begin by constructing the user interface for our PhotoLibrary application using XML. This will contain two buttons, as well as an ImageView control to display images that have been taken using the device camera or chosen from the device photo gallery.

Let's start by creating the user interface for our PhotoLibrary app by performing the following steps:

  1. Expand the Resources folder in the PhotoLibrary solution and right-click on the layout folder to display the popup, as shown in the following screenshot.
  2. Next, choose the New File... option, which is located in the Add menu:
Adding a new file within the layout folder
  1. Then, choose the Layout option under ...

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