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:
- 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.
- Next, choose the New File... option, which is located in the Add menu:
- Then, choose the Layout option under ...