-
-
Notifications
You must be signed in to change notification settings - Fork 18
CustomViewDialog
extends SimpleDialog
Extend this class to create a dialog with a custom view.
protected abstract View onCreateContentView(Bundle savedInstanceState)Inflate, setup and return your custom view here.
protected Bundle onResult(int which)Overwrite this method to return a Bundle that will be merged into the results returned by OnDialogResultListener.onResult.
Overwrite this method to take action once the dialog is shown such as settings the initial state of the positive button or an input focus:
protected void onDialogShown()Overwrite and return false from this function if you don't want the dialog to be closed yet, for example due to an invalid user input:
protected boolean acceptsPositiveButtonPress()Other methods:
protected void pressPositiveButton()
protected void setPositiveButtonEnabled(boolean enabled)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