Xamarin - Documentation

Android

change platform

  1. Xamarin
  2. Android
  3. Tutorials
  4. User Interface

User Interface

Table of contents

This is a collection of "Hello World"-style tutorials designed to get you started quickly with common Mono for 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 Mono for Android development. More specifically, you should know:

  • How to create an Mono for Android project and run it
  • The basic structure of a Mono for 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.

Widgets & Other Views

 

Date Picker Time Picker Form Elements
HelloViews7.png HelloViews8.png HelloViews9.png
     
Spinner Auto Complete Gallery
HelloViews10.png HelloViews11.png HelloViews12.png
     
Web View
 
HelloViews14.png
   

 

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.