Book Image

Xamarin Blueprints

By : Michael Williams
Book Image

Xamarin Blueprints

By: Michael Williams

Overview of this book

Do you want to create powerful, efficient, and independent apps from scratch that will leverage the Xamarin framework and code with C#? Well, look no further; you’ve come to the right place! This is a learn-as-you-build practical guide to building eight full-fledged applications using Xamarin.Forms, Xamarin Android, and Xamarin iOS. Each chapter includes a project, takes you through the process of building applications (such as a gallery Application, a text-to-speech service app, a GPS locator app, and a stock market app), and will show you how to deploy the application’s source code to a Google Cloud Source Repository. Other practical projects include a chat and a media-editing app, as well as other examples fit to adorn any developer’s utility belt. In the course of building applications, this book will teach you how to design and prototype professional-grade applications implementing performance and security considerations.
Table of Contents (14 chapters)
Xamarin Blueprints
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface

Improving app performance


Let's look at a few ways we can improve application performance. Mobile phones do not have desktop processors, users typically run your application an older devices, meaning the performance power maybe be lacking. This is why we must test applications on older and newer devices to compare the performance difference and any API/OS changes that may effect behavior.

Tip

Running applications on simulators can give different results when running on devices. Make sure you always test on physical devices before releasing.

Let's take a look at the MainPage.xaml page from the Locator project. Here we will make small tweaks in the XAML layout to slightly improve the performance. The changes are very minor and will only improve performance by a millisecond here and there, but when you combine 100s of these small improvements, the end result will make a difference.

We can see a Grid with three elements inside, now why did we pick a Grid? Grids are good for views which we use to...