The multiscreen application

Our goal in this subsection is to have two screens and two activities. The first activity will contain a simple button to access the second activity, while the second activity will have a button to return to the first activity.

Getting ready

In order to follow this recipe, you must have Xamarin Studio or Visual Studio and running. We have created a new project dedicated to experiencing graphical interfaces. We have named this project GraphicalInterfaces.

How to do it...

The first thing is to have a GraphicalInterface project created, as stated in the Getting ready section. A new project created with Xamarin will have a default activity and some code in it:

  1. Create a second activity:

    The first step is to create the second activity ...

Get Xamarin Studio for Android Programming: A C# Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.