-
-
Notifications
You must be signed in to change notification settings - Fork 18
SimpleCheckDialog
extends CustomViewDialog
API reference | Examples |
---|
A dialog with a single checkbox.
If multiple check boxes are required consider using a SimpleListDialog or a SimpleFormDialog instead.
For general usage see SimpleDialog.
Additional methods are provided to adjust the checkbox label (label
), it's initial state (check
), whether the check is required to press the positive button (checkRequired
) etc.
Please refer to the API reference for a comprehensive documentation of these methods.
For general usage see SimpleDialog.
The extras
Bundle returned will contain the following additional keys:
boolean checked = extras.getBoolean(SimpleCheckDialog.CHECKED); // If the checkbox was checked
SimpleCheckDialog.build()
.title("Accept?")
.msg("Please accept to continue.")
.label("Accept")
.check(true)
.checkRequired(true)
.show(this, DIALOG_TAG); |
|
SimpleCheckDialog.build()
.title(R.string.terms_title)
.msgHtml(R.string.terms_and_conditions_html_styled)
.label(R.string.terms_accept)
.checkRequired(true)
.pos(R.string.accept)
.neg(R.string.decline)
.cancelable(false)
.show(this, DIALOG_TAG); |
Javadoc API
Screenshot gallery
Styling dialogs with themes
Fullscreen dialogs
SimpleDialog
CustomViewDialog
CustomListDialog
SimpleCheckDialog
SimpleColorDialog
SimpleColorWheelDialog
SimpleDateDialog
SimpleEMailDialog
SimpleFormDialog
SimpleImageDialog
SimpleInputDialog
SimpleListDialog
SimplePinDialog
SimpleProgressDialog
SimpleTimeDialog