Xamarin Exordium Q A
Xamarin Exordium Q A
Xamarin - Introduction
One of our main challenge in cross-platform mobile development is to create the user experience
that is equivalent to native app. At the same time, we would like to share the common code
across platforms to make our development process more efficient and profitable.
Here comes the real role of Xamarin in cross-platform mobile development. Xamarin is a
platform for developing fully native applications for iOS, Android, and Windows, with a
shared code base.
In this course, you will learn about the development approaches you can use with Xamarin and
learn how to configure your development environment. So you are ready to start learning how to
build mobile applications using Xamarin!
Cross-Platform Overview
Cross-platform applications are apps with a single code base which can be used to run on
different mobile platforms like Android, iOS, Windows.
The final product is an app that uses native APIs which can achieve almost native performance
without any performance issues visible to the user.
Faster Development
Cost Effective
Direct access to device native APIs like Camera, Contact, Media etc.
Tools will have to catch up with the newer versions of mobile platform features.
The future depends upon the policies defined by the mobile platform manufacturers.
Platform limitations for some unique features
Lack of UI code sharing capability
Development teams have different Tools and Languages to master
NativeScript - An open source framework for building truly native mobile apps
with Angular, TypeScript or JavaScript.
Xamarin - A Platform for developing fully native applications for iOS, Android and
Windows, with a shared code base using C#.
React Native - Framework to build cross platform native mobile apps using JavaScript.
Power of Native
Powerful C# language
Xamarin uses C# which is one of the modern, powerful languages. It has many improvements
over Objective-C and Java. It allows you to use a familiar syntax and sophisticated features like
generics, Linq and the parallel task library.
Seamless integration
Xamarin provides seamless integration of Objective-C, Java and C++ libraries. This provides the
ability to easily integrate with many third-party code bases which are in Java, Objective-C or C+
+.
Code Reusability
Xamarin offers 90% of code reusability by sharing common code in a single code base for
Android, iOS and Windows platforms
Xamarin.Mobile library offers a unified API to access common resources across all three
platforms and applications can be written to share up to 90% of their code. This casues a
significant reduction in both development costs and time to market for mobile developers which
targets iOS, Android and Windows - the three most popular mobile platforms.
Xamarin Overview
Development Approaches
Xamarin provides two ways to build native apps.
Xamarin.Native
Xamarin.Forms
Native UI
Xamarin delivers high performance with device-specific experiences using native APIs to create
a good user interface and user experience.
iOS - UIKit APIs to create user interface. Xamarin's iOS designer/ Xcode Storyboards
can be used for designing the UI.
Android - Android.Views to create user interface. Xamarin’s UI designer can be used for
designing the UI.
Windows - XAML for presentation layer, created in Visual Studio or Blend’s UI
designer.
Mac - Storyboards to be used for the presentation layer, created in Xcode.
Xamarin.Forms - XAML to create user interfaces that can be shared across platforms.
Xamarin delivers high performance with device-specific experiences using native APIs to create
a good user interface and user experience.
Xamarin.Forms offering even more code reusability by providing the shared UI layer. XAML in
Xamarin.Forms can be used to create UI which can be shared across all the platforms.
Use C#
C# is a modern language that includes significant improvements over Objective-C and Java such
as
MVC/MVVM pattern
Xamarin architecture uses a Model/View/Controller approach or a Model/View/ViewModel
approach where “Model” is separated from the rest. It is important to decide which parts of your
application will use the native user interface elements of each platform (iOS, Android, Windows,
Mac) and the business logic. Normally, the code is split into the Core and User Interface. The
two most prominent MVVM frameworks for Xamarin development are: MVVMCross and
MVVMLight.
Xamarin allows you to code in C# and share code across multiple platforms. However, the
implementation on each OS is very different.
The Xamarin compiler performs optimizations for mobile deployment such as linking away un-
used code.
Through this, user interfaces will be created using the platform-specific UI components and the
business logic will be shared throughout the project. A separate UI layer is required for each
platform - iOS, Android, Windows and Mac. This approach enables us to fine-tune the UI for
each platform.
Xamarin.Forms
The Xamarin compiler also performs many optimisations for mobile deployment such as
linking away un-used code.
macOS Requirements
Using a Mac computer for Xamarin development requires the below software/SDK versions.
NOTE: Xcode can be installed (and updated) on developer.apple.com or via the Mac App Store.
Windows Requirements
Using a Windows computer for Xamarin development requires the below software/SDK
versions.
NOTES:
Xamarin for Visual Studio supports any Visual Studio 2015 or 2017 (Community, Professional,
and Enterprise) and non-Express editions of Visual Studio 2013 Update 2.
To develop Xamarin.Forms apps for the Universal Windows Platform (UWP) requires Windows
10 with Visual Studio 2015 or 2017.
Answer:-(1)True
Using Xamarin.Droid the Android-specific UI code can be shared with other platforms.
Answer:-False
Answer:-(1)False
For Xamarin Forms based development for Android does not require Android Manifest file.
Choose the correct answer from below options:-
(1)True
(2)False
Answer:-(2)False
Answer:-MVVM
Answer:-(2)True
Answer:-False
_________ is a cross-platform UI toolkit that allows developers to easily create native user
interface layouts that can be shared across Android, iOS, and Windows Phone.
Answer:-Xamarin Forms
Answer:-(3).cs
Answer;-(3)All ABC
Answer:-False
Answer:-(2)Analytics tool that answers vital questions about the health of your apps
Answer:-(3)C# and F#
Xamarin studio is a standalone IDE for crossplatform mobile application development based on
open source project ____
Choose the correct answer from below options:-
(1)Baxter
(2)AndroidStudio
(3)MonoDevelop
(4)Project moonshoot
Answer:-(3)MonoDevelop
Answer:-(3)Android