Buttons

Implementing UI elements that the user taps to perform an action

PDF for offline use

Let us know how you feel about this

Translation Quality


0/250

last updated: 2017-08

The Button class is used to represent various different styles of button in Android screens. This section introduces the different options for working with buttons in Xamarin.Android:

  • RadioButton allows the user to select one option from a set.

  • ToggleButton allow the user to flip (toggle) a setting between two states.

  • CheckBox is a special type of button that can be either checked or unchecked to indicate one of two possible states.

  • You can also create a custom button that uses an image instead of text.

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.