MultiChoiceItem Dialog

protected override Dialog OnCreateDialog (int id)
{
switch (id) {
case yourId:
{
string[] color_options = Resources.GetStringArray (Resource.Array.nameArray);
bool[] check_list; // this use for make default check in list
check_list = new bool[color_options.Length]; // it set the length of the list same with length options
check_list [2] = true; // this is how we set the list,
// you can set where list that you want to set with
// set the index
builder = new AlertDialog.Builder (this);
builder.SetTitle ("Pick a color");
builder.SetNegativeButton ("Cancel", CancelClicked);
builder.SetPositiveButton ("OK", OkClicked);// make event ok separate in another event
// it set the dialog with multi choice item, and if one of the item click/select
// app will set check_list value
builder.SetMultiChoiceItems (color_options, check_list, (o, e) => {
check_list [e.Which] = e.IsChecked;
});
return builder.Create ();
}
}
return null;
}

After that, we need to make “OkClicked” to run the event when user click “OK” button.

Input dialog is a dialog that you can input with a text not select an item. With input dilaog, get spesific value to process because it not only some options. To implement it, you just need to insert your code like this :