public class DatePickerDialog extends android.app.AlertDialog implements DatePicker.OnDateChangedListener
| Modifier and Type | Class and Description |
|---|---|
static interface |
DatePickerDialog.OnDateSetListener
The setDateSetListener used to indicate the user is done filling in the date.
|
android.app.AlertDialog.Builderandroid.content.DialogInterface.OnCancelListener, android.content.DialogInterface.OnClickListener, android.content.DialogInterface.OnDismissListener, android.content.DialogInterface.OnKeyListener, android.content.DialogInterface.OnMultiChoiceClickListener, android.content.DialogInterface.OnShowListener| Modifier and Type | Field and Description |
|---|---|
static int |
TITLE_DATE |
static int |
TITLE_HIDDEN |
static int |
TITLE_TEXT |
| Modifier and Type | Method and Description |
|---|---|
void |
onDateChanged(DatePicker view,
int year,
int monthOfYear,
int dayOfMonth)
Called upon a date change.
|
void |
onRestoreInstanceState(android.os.Bundle savedInstanceState) |
android.os.Bundle |
onSaveInstanceState() |
getButton, getListView, onCreate, onKeyDown, onKeyUp, setButton, setButton, setButton, setButton, setButton2, setButton2, setButton3, setButton3, setCustomTitle, setIcon, setIcon, setIconAttribute, setInverseBackgroundForced, setMessage, setTitle, setView, setViewaddContentView, cancel, closeOptionsMenu, create, dismiss, dispatchGenericMotionEvent, dispatchKeyEvent, dispatchKeyShortcutEvent, dispatchPopulateAccessibilityEvent, dispatchTouchEvent, dispatchTrackballEvent, findViewById, getActionBar, getContext, getCurrentFocus, getLayoutInflater, getOwnerActivity, getSearchEvent, getVolumeControlStream, getWindow, hide, invalidateOptionsMenu, isShowing, onActionModeFinished, onActionModeStarted, onAttachedToWindow, onBackPressed, onContentChanged, onContextItemSelected, onContextMenuClosed, onCreateContextMenu, onCreateOptionsMenu, onCreatePanelMenu, onCreatePanelView, onDetachedFromWindow, onGenericMotionEvent, onKeyLongPress, onKeyMultiple, onKeyShortcut, onMenuItemSelected, onMenuOpened, onOptionsItemSelected, onOptionsMenuClosed, onPanelClosed, onPrepareOptionsMenu, onPreparePanel, onSearchRequested, onSearchRequested, onStart, onStop, onTouchEvent, onTrackballEvent, onWindowAttributesChanged, onWindowFocusChanged, onWindowStartingActionMode, onWindowStartingActionMode, openContextMenu, openOptionsMenu, registerForContextMenu, requestWindowFeature, requireViewById, setCancelable, setCanceledOnTouchOutside, setCancelMessage, setContentView, setContentView, setContentView, setDismissMessage, setFeatureDrawable, setFeatureDrawableAlpha, setFeatureDrawableResource, setFeatureDrawableUri, setOnCancelListener, setOnDismissListener, setOnKeyListener, setOnShowListener, setOwnerActivity, setTitle, setVolumeControlStream, show, takeKeyEvents, unregisterForContextMenupublic static final int TITLE_DATE
public static final int TITLE_TEXT
public static final int TITLE_HIDDEN
public void onDateChanged(DatePicker view, int year, int monthOfYear, int dayOfMonth)
DatePicker.OnDateChangedListeneronDateChanged in interface DatePicker.OnDateChangedListenerview - The view associated with this listener.year - The year that was set.monthOfYear - The month that was set (0-11) for compatibility with Calendar.dayOfMonth - The day of the month that was set.@NonNull public android.os.Bundle onSaveInstanceState()
onSaveInstanceState in class android.app.Dialogpublic void onRestoreInstanceState(@NonNull
android.os.Bundle savedInstanceState)
onRestoreInstanceState in class android.app.Dialog