Class DatePickerDialog
- java.lang.Object
-
- android.app.Dialog
-
- android.app.AlertDialog
-
- com.yoti.mobile.android.common.ui.widgets.date.picker.DatePickerDialog
-
- All Implemented Interfaces:
android.content.DialogInterface,android.view.KeyEvent.Callback,android.view.View.OnCreateContextMenuListener,android.view.Window.Callback,DatePicker.OnDateChangedListener
public class DatePickerDialog extends android.app.AlertDialog implements DatePicker.OnDateChangedListener
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDatePickerDialog.OnDateSetListenerThe setDateSetListener used to indicate the user is done filling in the date.-
Nested classes/interfaces inherited from class android.app.AlertDialog
android.app.AlertDialog.Builder
-
Nested classes/interfaces inherited from interface android.content.DialogInterface
android.content.DialogInterface.OnCancelListener, android.content.DialogInterface.OnClickListener, android.content.DialogInterface.OnDismissListener, android.content.DialogInterface.OnKeyListener, android.content.DialogInterface.OnMultiChoiceClickListener, android.content.DialogInterface.OnShowListener
-
-
Field Summary
Fields Modifier and Type Field Description static intTITLE_DATEstatic intTITLE_HIDDENstatic intTITLE_TEXT
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonDateChanged(DatePicker view, int year, int monthOfYear, int dayOfMonth)Called upon a date change.voidonRestoreInstanceState(android.os.Bundle savedInstanceState)android.os.BundleonSaveInstanceState()-
Methods inherited from class android.app.AlertDialog
getButton, getListView, onCreate, onKeyDown, onKeyUp, setButton, setButton, setButton, setButton, setButton2, setButton2, setButton3, setButton3, setCustomTitle, setIcon, setIcon, setIconAttribute, setInverseBackgroundForced, setMessage, setTitle, setView, setView
-
Methods inherited from class android.app.Dialog
addContentView, 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, unregisterForContextMenu
-
-
-
-
Field Detail
-
TITLE_DATE
public static final int TITLE_DATE
- See Also:
- Constant Field Values
-
TITLE_TEXT
public static final int TITLE_TEXT
- See Also:
- Constant Field Values
-
TITLE_HIDDEN
public static final int TITLE_HIDDEN
- See Also:
- Constant Field Values
-
-
Method Detail
-
onDateChanged
public void onDateChanged(DatePicker view, int year, int monthOfYear, int dayOfMonth)
Description copied from interface:DatePicker.OnDateChangedListenerCalled upon a date change.- Specified by:
onDateChangedin interfaceDatePicker.OnDateChangedListener- Parameters:
view- The view associated with this listener.year- The year that was set.monthOfYear- The month that was set (0-11) for compatibility withCalendar.dayOfMonth- The day of the month that was set.
-
onSaveInstanceState
@NonNull public android.os.Bundle onSaveInstanceState()
- Overrides:
onSaveInstanceStatein classandroid.app.Dialog
-
onRestoreInstanceState
public void onRestoreInstanceState(@NonNull android.os.Bundle savedInstanceState)- Overrides:
onRestoreInstanceStatein classandroid.app.Dialog
-
-