User Interface

Creating the App UI

PDF for offline use

Let us know how you feel about this

Translation Quality


This is a collection of "Hello World"-style tutorials designed to get you started quickly with common Xamarin.Android layouts and widgets.

A certain amount of knowledge is assumed for these tutorials. Before you start, you should have completed the Hello, Android tutorial—it will teach you several things about basic Xamarin.Android development. More specifically, you should know:

  • How to create an Xamarin.Android project and run it
  • The basic structure of a Xamarin.Android project (resource files, layout files, etc.)
  • The basic components of an Activity

Note: In order to make these tutorials as simple as possible, some code may not conform to best practices for coding Android applications. In particular, hard-coded strings are used in places, when the better practice is to reference strings from a Resources/Values/Strings.xml resource file.

ListView and Adapters

List views and adapters are one of the most fundamental building blocks of Android Applications, check out the guide on them here.


Linear Layout Relative Layout Table Layout
Grid View Tab Layout  List View


Widgets & Other Views


Date Picker Time Picker Form Elements
Spinner Auto Complete Gallery
Web View Toolbar ViewPager


There are plenty more layouts and widgets available. See the View class for more on View layouts, and the Widget namespace for more useful widgets. And for more raw code samples, visit the Api Demos.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License . This tutorial is based on the Android Hello Views tutorial .

Xamarin Workbook

If it's not already installed, install the Xamarin Workbooks app first. The workbook file should download automatically, but if it doesn't, just click to start the workbook download manually.