Class DatePickerDialog

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static interface  DatePickerDialog.OnDateSetListener
      The 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 int TITLE_DATE  
      static int TITLE_HIDDEN  
      static int TITLE_TEXT  
      • Fields inherited from class android.app.AlertDialog

        THEME_DEVICE_DEFAULT_DARK, THEME_DEVICE_DEFAULT_LIGHT, THEME_HOLO_DARK, THEME_HOLO_LIGHT, THEME_TRADITIONAL
      • Fields inherited from interface android.content.DialogInterface

        BUTTON_NEGATIVE, BUTTON_NEUTRAL, BUTTON_POSITIVE, BUTTON1, BUTTON2, BUTTON3
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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()  
      • 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface android.content.DialogInterface

        cancel, dismiss
      • Methods inherited from interface android.view.Window.Callback

        onPointerCaptureChanged, onProvideKeyboardShortcuts
    • Method Detail

      • onDateChanged

        public void onDateChanged​(DatePicker view,
                                  int year,
                                  int monthOfYear,
                                  int dayOfMonth)
        Description copied from interface: DatePicker.OnDateChangedListener
        Called upon a date change.
        Specified by:
        onDateChanged in interface DatePicker.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 with Calendar.
        dayOfMonth - The day of the month that was set.
      • onSaveInstanceState

        @NonNull
        public android.os.Bundle onSaveInstanceState()
        Overrides:
        onSaveInstanceState in class android.app.Dialog
      • onRestoreInstanceState

        public void onRestoreInstanceState​(@NonNull
                                           android.os.Bundle savedInstanceState)
        Overrides:
        onRestoreInstanceState in class android.app.Dialog