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
<a href= "http://docs.monodroid.net/index.aspx?link=T%3aAndroid.App.Activity" target="_blank">Activity</a>
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
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|
There are plenty more layouts and widgets available. See the
<a href= "http://docs.monodroid.net/index.aspx?link=T%3aAndroid.Views.View" target= "_blank">View</a> class for more on View layouts, and the
<a href="http://docs.monodroid.net/index.aspx?link=N%3aAndroid.Widget" target="_blank">Widget namespace</a> 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 .