O'Reilly logo

Seven Mobile Apps in Seven Weeks by Tony Hillerson

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

Day 1: Adding Up the Platforms

Or, Building an iOS and Android View

Today we’ll dive in and build a Xamarin solution, or set of projects, which will have both an Android and an iOS UI for a calculator. Most of the code we write will use native APIs and widgets on those platforms, just written in C# instead of native code.

Creating and Setting Up a Solution

The first step is to use Xamarin Studio to create a new solution. We want to build this app for both iOS and Android, so we need to choose to build a cross-platform app. We’ll start with the native single-view app this time. On Day 3 we’ll rebuild the UI using Xamarin.Forms, so don’t choose that option at this time. We also want to have unit tests generated, so make sure you check the box ...

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