The example in this article analyzes the use of the Android check Box dialog box. Share to everyone for your reference, specific as follows:
/**
* Create Filter check box dialog box
* @param guoguanglist league name
* @param flags Select
* @create_time 2011-10-26 afternoon 3:59:54
* /
private void Initfilterdialog (string[] inamelist, final boolean[] iflags) {
Builder Builder = new Android.app.a Lertdialog.builder (this);
Builder.settitle ("Screening events");
Builder.setmultichoiceitems (Inamelist, IFlags, New Dialoginterface.onmultichoiceclicklistener () {public
void OnClick (dialoginterface dialog, int which, Boolean ischecked) {
Leaguenamechoice[which] = ischecked;
}
});
//Add a OK button
Builder.setpositivebutton ("OK", new Dialoginterface.onclicklistener () {public
void OnClick (dialoginterface dialog, int which) {
filterleaguenameresult ();
}
});
Builder.setnegativebutton ("Off", new Dialoginterface.onclicklistener () {public
void OnClick (Dialoginterface) dialog, int which) {
}
});
Create a check Box dialog box
dialog = Builder.create ();
Dialog.show ();
}
I hope this article will help you with the Android program.