Using form elements
For sure, you will need most of the form elements that Xamarin Studio provides. Form elements will give you a very easy and quick way to get a request and retrieve data from users—as we have done several times with the
Create a new Android project named
How to do it...
A checkbox is either checked or not, and it contains an associated label describing the choice that the user is about to make:
CheckBox cb = FindViewById<CheckBox> (Resource.Id.checkBox1);
- Obviously, checkboxes support the method in order to know whether it's checked or not and to change the associated text. Respectively, these methods are as follows:
cb.Text = "My Describing Text"; Boolean isMyCheckBoxChecked = cb.Checked; ...