Creating and implementing the PhotoLibrary Activity class

In this section, we will start by creating the PhotoLibrary Activity class that will be used to interact with our PhotoLibraryUI user interface, and handle when each of the buttons has been pressed.

Let's start by creating the PhotoLibraryActivity class for our PhotoLibrary app in the following steps:

  1. Ensure that the PhotoLibrary solution is currently open in the Visual Studio for Mac IDE.
  2. Next, right-click on the PhotoLibrary project and choose Add|New File... from the pop-up menu, as shown in the following screenshot:
Creating a new Android Activity Class
  1. Then, choose the Activity ...

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.