The unified solution provided by Visual Studio, Azure, Xamarin Test Cloud, and HockeyApp speeds up application delivery and boosts the productivity and quality of any mobile project. Shopping Demo App sample application.
A simple Xamarin app named Acquaint. The app is a simple list of contacts, each of which can be viewed in a detail screen and modified in an edit screen. It runs on iOS 9+, Android 4.2+, and UWP (mobile and desktop).
##Cross-platform and nativeThe app is implemented in two ways in order to demonstrate the two different approaches to Xamarin app development:
- Xamarin.Forms cross-platform UI
- Xamarin native, with platform-specific UI implementations
##Three platformsThe app targets three platforms:
- iOS
- Android
- Universal Windows Platform (UWP)
- UWP currently only in Forms version of app
- UWP supported only in Visual Studio, not Xamarin Studio
##IntegrationsIncludes integrations such as:
- getting directions
- making calls
- sending text messages
- email composition
Requirements
- Visual Studio 2015 (14.0 or higher) to compile C# 6 langage features (or Xamarin Studio OS X)
- Xamarin add-ons for Visual Studio (available via the Visual Studio installer)
- Visual Studio Community Edition is fully supported!
Google Maps API key (Android)
For Android, you'll need to obtain a Google Maps API key:https://developer.xamarin.com/guides/android/platform_features/maps_and_location/maps/obtaining_a_google_maps_api_key/
Insert it in the Android project:
~/Properties/AndroidManifest.xml
:Enabling SQLite for UWP
The UWP app requires that you install the SQLite for UWP extension for Visual Studio. You can find the latest version here:https://visualstudiogallery.msdn.microsoft.com/4913e7d5-96c9-4dde-a1a1-69820d615936
The steps that were taken to implement it in the UWP project can be found in steps 1-3 here:https://azure.microsoft.com/en-us/documentation/articles/app-service-mobile-windows-store-dotnet-get-started-offline-data/#_update-the-client-app-to-support-offline-features
Platform-specific UI Features (in native version only)
3D Touch Previewing (iOS) | Shared View Transitions (Android) |
---|
Screens
The app has three main screens:
- a list screen
- a read-only detail screen
- an editable detail screen
People
All images of people in the app come from UIFaces.com. In accordance with the guidelines, fictitious names have been provided.
Clean and Rebuild
If you see build issues when pulling updates from the repo, try cleaning and rebuilding the solution.
-->
Xamarin lets you build native apps for Android, iOS, and macOS using .NET code and platform-specific user interfaces. Xamarin.Forms allows you to build native apps, with shared UI code written in C# or XAML.
Xamarin.Forms cross-platform
Android
Get started with Xamarin.Forms
Build cross-platform Android & iOS apps using C# and .NET in Visual Studio on Windows and macOS.
Build your first app
Follow a tutorial
Leverage existing knowledge
Xamarin.Forms common tasks
Important concepts for building Android & iOS apps with Xamarin.Forms
Mobile developer tools
Xamarin platforms overview
Xamarin.Forms cross-platform
Android
iOS
Mac
Blogs - Twitter - Stack Overflow - Developer Community