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

Get Mastering Xamarin UI Development - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.