java.lang.Object | |||
↳ | android.app.Dialog | ||
↳ | android.app.AlertDialog | ||
↳ | android.app.DatePickerDialog |
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
DatePickerDialog.OnDateSetListener | The callback used to indicate the user is done filling in the date. |
[Expand]
Inherited Constants
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class android.app.AlertDialog
|
|||||||||||
From interface android.content.DialogInterface
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
|
||||||||||
|
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Gets the
DatePicker contained in this dialog.
|
|||||||||
|
|
This method will be invoked when a button in the dialog is clicked.
|
|||||||||
|
|
Called upon a date change.
|
|||||||||
|
|
Restore the state of the dialog from a previously saved bundle.
|
|||||||||
|
|
Saves the state of the dialog into a bundle.
|
|||||||||
|
|
Sets the current date.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Called to tell you that you're stopping.
|
[Expand]
Inherited Methods
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class android.app.AlertDialog
|
|||||||||||
From class android.app.Dialog
|
|||||||||||
From class java.lang.Object
|
|||||||||||
From interface android.content.DialogInterface
|
|||||||||||
From interface android.content.DialogInterface.OnClickListener
|
|||||||||||
From interface android.view.KeyEvent.Callback
|
|||||||||||
From interface android.view.View.OnCreateContextMenuListener
|
|||||||||||
From interface android.view.Window.Callback
|
|||||||||||
From interface android.widget.DatePicker.OnDateChangedListener
|
context | The context the dialog is to run in. |
---|---|
callBack | How the parent is notified that the date is set. |
year | The initial year of the dialog. |
monthOfYear | The initial month of the dialog. |
dayOfMonth | The initial day of the dialog. |
context | The context the dialog is to run in. |
---|---|
theme | the theme to apply to this dialog |
callBack | How the parent is notified that the date is set. |
year | The initial year of the dialog. |
monthOfYear | The initial month of the dialog. |
dayOfMonth | The initial day of the dialog. |
Gets the DatePicker
contained in this dialog.
This method will be invoked when a button in the dialog is clicked.
dialog | The dialog that received the click. |
---|---|
which | The button that was clicked (e.g. BUTTON1 ) or the position of the item clicked. |
Called upon a date change.
view | The view associated with this listener. |
---|---|
year | The year that was set. |
month | The month that was set (0-11) for compatibility with Calendar . |
day | The day of the month that was set. |
Restore the state of the dialog from a previously saved bundle. The default implementation restores the state of the dialog's view hierarchy that was saved in the default implementation of onSaveInstanceState()
, so be sure to call through to super when overriding unless you want to do all restoring of state yourself.
savedInstanceState | The state of the dialog previously saved by onSaveInstanceState() . |
---|
Saves the state of the dialog into a bundle. The default implementation saves the state of its view hierarchy, so you'll likely want to call through to super if you override this to save additional state.
Sets the current date.
year | The date year. |
---|---|
monthOfYear | The date month. |
dayOfMonth | The date day of month. |