Android Samples

#LeaderboardsAndAchievementsDemo

Demonstrates the Leaderboard and Achievement features for Google Play Games.

Accessing Native Views in Code

This sample demonstrates how to refer to native views declared in XAML, from code.

ActivitySceneTransitionBasic

Demonstrates how to use Activity scene transitions when transitioning from one activity to another.

Advanced Immersive Mode

This sample demonstrates letting users show or hide the status bar and navigation bar with a swipe.

Android API Demo

Includes a variety of small applications that illustrate the use of various Android APIs.

Android L Kitchen Sink

Demonstrates new Android L features including support v7.

Bindable Picker

This sample demonstrates how to use a Picker to select a color from a list of colors.

Bluetooth Chat

Demonstrates using the Bluetooth APIs to create a sample chat client.

Borderless Buttons

This sample demonstrates the **borderless button** styling from the Holo visual language.

BugSweeper

A familiar game with a new twist.

Button Widget

Shows how to use a simple button widget.

ButtonCode

This program demonstrates how to create a Button in code and process events from it.

ButtonXaml

Demonstrates how to create a Button in XAML and process its events in a code-behind file.

CardView

Demonstration of the CardView API introduced in Android L.

Circle Map Overlay

This sample demonstrates how to add a circular overlay to a map in order to highlight a circular area of the map.

ClassHierarchy

Demonstrates a scrollable hierarchy of all Xamarin.Forms classes, structures, and enumerations.

Content Controls

A cross platform sample which that demonstrates the usage of some common content controls.

ContentPage Custom Renderer

This sample demonstrates a custom renderer for a ContentPage, enabling developers to override the default native rendering with their own platform-specific customization.

Creating a Splash Screen

Demonstrates how to add a splash screen to a Xamarin.Android application.

Custom Transitions

Demonstrates how to create custom transitions to go from one scene in their app to the next.

Dynamic ListView Row Resizing

This sample demonstrates using the Cell.ForceUpdateSize method to programmatically resize a ListView row at runtime.

Elevation Basic

This sample demonstrates two alternative ways to move a view in the z-axis.

Elevation Drag

This sample demonstrates a drag and drop action on different shapes.

Employee Directory

This is a Xamarin.Forms port of the pre-built sample app Employee Directory.

Entry Custom Renderer

This sample demonstrates a custom renderer for the Entry control, enabling developers to override the default native rendering with their own platform-specific customization.

Floating Action Button Basic

This sample shows the two sizes of Floating Action Buttons and how to interact with them.

Forms2Native

This sample demonstrates how to add native views to a Xamarin.Forms page, and how they can interact with Xamarin.Forms views.

FormsGallery

This program displays all the views, cells, layouts, and pages available in Xamarin.Forms, one per page.

Fragment Transition

This sample demonstrates how to start a transition right after a fragment transaction.

Google I/O 2014

demonstrates Material Design APIs

Google IO 2011 App in Mono for Android

This is a port of the [Google IO 2011 Schedule App].

GridLayout Demo

This example shows how to use a GridLayout with Ice Cream Sandwich.

GridLayoutDemo

This sample demonstrates how to display various UI elements in a grid.

GridViewPager sample

Demonstrates the use of GridViewPager and GridPagerAdapter for Android Wear.

Hello Mono for Android

A simple hello world application that displays a message in a TextView when a Button is pressed.

Hello Multiscreen

This is a simple example showing how to use activities to create multiscreen applications.

Hello World

Demonstrates the use of TextView to display a plain old hello world message via a string resource.

Honeycomb Gallery

Demonstrates new APIs in Honeycomb: fragments, ActionBar and the new animation framework.

HybridWebView Custom Renderer

This sample demonstrates a custom renderer for a HybridWebView custom control, that demonstrates how to enhance the platform-specific web controls to allow C# code to be invoked from JavaScript.

ICS Tabs Demo

This example shows how to use tabs from the Action Bar in Ice Cream Sandwich.

Introduction to Xamarin.Forms

Some simple HelloWorld-type samples for the Introduction to Xamarin.Forms.

Java Native Invoke Sample

Shows how to manually bind to a Java library so it can be consumed by a Mono for Android application.

Labelled Sections

Demonstrates how to create an alphabetically ordered list with labelled sections.

LabelledSections

This sample demonstrates how to create an alphabetically ordered list with labelled sections.

LayoutOptions

Every Xamarin.Forms view has HorizontalOptions and VerticalOptions properties, of type LayoutOptions. This sample demonstrates the effect that each LayoutOptions value has on the alignment and expansion of a view.

ListView Custom Renderer

This sample demonstrates a custom renderer that encapsulates platform-specific list controls and native cell layouts.

Map Custom Renderer

This sample demonstrates how to create a custom renderer for the Map control, which displays a native map with a customized pin and a customized view of the pin data on each platform.

MediaBrowserService

Demonstrates how to create a simple media player app using the new MediaBrowserService API

Monkey Picker

This sample demonstrates how to populate a Picker with data by setting the ItemsSource property, and how to respond to item selection by the user.

MultiTasking

A simple cross platform example of using a background thread to perform a long running task.

Multi-Touch Tracking in Android

Tracking multi-touch events in Android.

Native Embedding

This sample demonstrates how to add platform-specific controls to a Xamarin.Forms layout, and includes how to override the layout of custom controls in order to correct their measurement API usage.

Native Switch

This sample demonstrates how to add native views to a Xamarin.Forms page, and how they can interact with Xamarin.Forms views.

NavigationDrawer

This example illustrates a common usage of the DrawerLayout widget in the Android support library.

Notepad Sample (Mono.Sqlite)

This sample shows a simple note taking application.

PanGesture

This sample demonstrates using the PanGestureRecognizer class to implement dragging.

Phoneword

Demonstrates how to share C# code across iOS, Android, Windows Phone 7, Windows 8.

Phoneword

This sample demonstrates sharing C# code across platforms using Xamarin.Forms.

Phoneword Multiscreen

This sample demonstrates adding simple page navigation to the Phoneword app using Xamarin.Forms.

Picker

This sample demonstrates how to use a Picker to select a text item from a list of data.

PinchGesture

This sample demonstrates using the PinchGestureRecognizer class to implement interactive zoom functionality.

Platform Specifics

This sample demonstrates how to consume the platform-specifics that are built into Xamarin.Forms.

Polygon Map Overlay

This sample demonstrates how to add a polygon overlay to a map in order to highlight a region on the map. Polygons are a closed shape and have their interiors filled in.

Polyline Map Overlay

This sample demonstrates how to add a polyline overlay to a map. A polyline overlay is a series of connected line segments that are typically used to show a route on a map, or form any shape that's required.

Popup Menu Demo

This example shows how to use a Popup Menu with Ice Cream Sandwich.

RecyclerView

Demonstrates use of RecyclerView with a LinearLayoutManager.

Reveal Effect Basic

Basic sample to demonstrate the reveal effect.

Rotation Demo

This is the sample code for the article Handling Rotation.

Searchable Dictionary v2

Demonstrates the use of Android's search framework.

Shadow Platform-Specific

This sample demonstrates how to expose an Effect through a platform-specific.

Simple Widget

This sample shows a simple widget which fetches the word of the day from Wiktionary.

Skeleton App

This is a simple application with an EditText control and clear/back buttons, plus a custom picture.

SkeletonWear

Demonstrates the basic outline of a wearable project, including Gridviews on Wearable devices.

Solitaire Encryption (Xamarin.Forms)

Demonstrates the Solitaire encryption algorithm from Neal Stephenson's novel Cryptonomicon.

Standard Controls

This sample application illustrates how to use a number of standard ui controls.

Subclassed Native Views

This sample demonstrates how to subclass native to define a XAML-friendly API.

Support v7 Palette

Basic sample of custom theming your application with the Palette support library.

Support v7 Toolbar

Demonstrates replacing the ActionBar with the new Support v7 Toolbar

Switch Demo

This example shows how to use a switch control with Ice Cream Sandwich.

System UI Visibility Demo

This example shows how to change the appearance of the Navigation Bar in Ice Cream Sandwich.

Tables and Lists

Demonstrates the various table and cell styles available out of the box.

TapGesture

These samples demonstrate working with tap gestures using Xamarin Forms.

Tasky

Demonstrates a cross-platform todo application that allows you to track todo/task items.

Tasky

This version of Tasky uses a Portable Class Library and SQLite NuGet package to encapsulate and share code across platforms.

Tasky Pro

Demonstrates proper application architecture layering and using a common code base.

TextureView Demo

Demonstrates how to use a TextureView with Ice Cream Sandwich.

TipCalc

Tip calculator is simple cross platform application, which calculates the correct tip amount.

Todo

This sample demonstrates a Todo list application where the data is stored and accessed in a local SQLite database.

TodoLocalized (Xamarin.Forms)

Demonstrates how to localize Xamarin.Forms using RESX.

Toolbar

Basic sample of replacing the ActionBar with the new ToolBar.

TvLeanback

This sample shows a basic Android-TV application by showcasing various video provided by Google.

View Custom Renderer

This sample demonstrates a custom renderer for a Xamarin.Forms custom control that's used to display a preview video stream from the device's camera.

ViewCell Custom Renderer

This sample demonstrates a custom renderer for a ViewCell that's hosted inside a Xamarin.Forms ListView control, enabling developers to override the default native rendering with their own platform-specific customization.

ViewPagerIndicator

Port of [ViewPagerIndicator library by JakeWharton]

WatchViewStubSample

Demonstrates how to automatically select a layout for round or rectangular screens.

WeatherApp (Native iOS, Android, and Windows Phone)

Demonstrates a cross-platform app using native UI layers that retrieves data from a weather service.

WeatherApp for Xamarin.Forms

Demonstrates a cross-platform app using Xamarin.Forms that retrieves data from a weather service.

Working with Colors

This sample demonstrates how to use Xamrin Form's flexible Cross-Platform Color class.

Working with Fonts

This sample demonstrates working with fonts using Xamarin Forms.

Working with ListView

These samples demonstrate how to work with ListView using Xamarin Forms.

WrapLayout

This sample demonstrates an orientation-sensitive WrapLayout class that arranges its children horizontally across the page, and then wraps the display of subsequent children to additional rows.

Xamarin Forms Image Resizer

Demonstrates how to cross-platform load, resize, and display an image on the screen.

Xamarin.Forms Layout Demos

This sample demonstrates a variety of layouts, including Grid, AbsoluteLayout, RelativeLayout, and StackLayout.

Xamarin.Forms Layout Sample: The Business Tumble

This sample, inspired by a corporate social media profile app, demonstrates how to build similar layouts across StackLayout, RelativeLayout, and AbsoluteLayout.

Xamarin.Forms Layout: Handling Device Orientation

This application demonstrates how various layouts can be used to create user interfaces that work well in multiple orientations.

Xamarin.Forms ListView Sample: Binding Context Changed

This sample demonstrates binding context changes in a ListView custom cell in Xamarin.Forms.

Xamarin.Forms ListView Sample: Built-In Cells

This sample demonstrates the built-in ListView cells.

Xamarin.Forms ListView Sample: Custom Cells

This sample demonstrates custom cells with ListView in Xamarin.Forms.

Xamarin.Forms ListView Sample: Grouping

This sample demonstrates how to group items in a Xamarin.Forms ListView.

Xamarin.Forms ListView Sample: Interactivity

This sample demonstrates how to use ListView's interactivity features, including context actions, pull-to-refresh and row selection.

Xamarin.Forms ListView Sample: The Basics

The ListView Basics sample demonstrates populating a ListView with an array of strings, not specifying which ViewCell to use.

Xamarin.Forms ListView Sample: Two-Way Binding with SwitchCell and EntryCell

This sample demonstrates how to collect data using a ListView with SwitchCell or EntryCell.

Xamarin.Forms Text

This sample demonstrates the various views for displaying and entering text available in Xamarin.Forms.

Xuzzle

This sample implements the classic 14-15 puzzle using Xamarin.Forms.