Android Platform Features

Developing Xamarin.Forms applications for Android requires Visual Studio. The requirements page contains more information about the pre-requisites.

Platform-specifics

Platform-specifics allow you to consume functionality that's only available on a specific platform, without implementing custom renderers or effects.

The following platform-specific functionality is provided for Xamarin.Forms views, pages, and layouts on Android:

The following platform-specific functionality is provided for Xamarin.Forms views on Android:

The following platform-specific functionality is provided for Xamarin.Forms pages on Android:

The following platform-specific functionality is provided for the Xamarin.Forms Application class on Android:

Platform support

Originally, the default Xamarin.Forms Android project used an older style of control rendering that was common prior to Android 5.0. Applications built using the template have FormsApplicationActivity as the base class of their main activity.

Material design via AppCompat

Xamarin.Forms Android projects now use FormsAppCompatActivity as the base class of their main activity. This class uses AppCompat features provided by Android to implement Material Design themes.

To add Material Design themes to your Xamarin.Forms Android project, follow the installation instructions for AppCompat support

Here is the Todo sample with the default FormsApplicationActivity:

And this is the same code after upgrading the project to use FormsAppCompatActivity (and adding the additional theme information):

Note

When using FormsAppCompatActivity, the base classes for some Android custom renderers will be different.