Example usage for Java android.app DatePickerDialog fields, constructors, methods, implement or subclass
The text is from its open source code.
DatePickerDialog(@NonNull Context context, @Nullable OnDateSetListener listener, int year, int month, int dayOfMonth) Creates a new date picker dialog for the specified date using the parent context's default date picker dialog theme. | |
DatePickerDialog(@NonNull Context context, @StyleRes int themeResId, @Nullable OnDateSetListener listener, int year, int monthOfYear, int dayOfMonth) Creates a new date picker dialog for the specified date. |
void | dismiss() Dismiss this dialog, removing it from the screen. |
Button | getButton(int whichButton) Gets one of the buttons used in the dialog. |
Class> | getClass() Returns the runtime class of this Object . |
DatePicker | getDatePicker() Returns the DatePicker contained in this dialog. |
Window | getWindow() Retrieve the current Window for the activity. |
void | setButton(int whichButton, CharSequence text, Message msg) Set a message to be sent when a button is pressed. |
void | setCustomTitle(View customTitleView) |
void | setMessage(CharSequence message) |
void | setOnCancelListener(@Nullable OnCancelListener listener) Set a listener to be invoked when the dialog is canceled. |
void | setOnKeyListener(@Nullable OnKeyListener onKeyListener) Sets the callback that will be called if a key is dispatched to the dialog. |
void | setOnShowListener(@Nullable OnShowListener listener) Sets a listener to be invoked when the dialog is shown. |
void | setTitle(CharSequence title) |
void | show() Start the dialog and display it on screen. |
void | updateDate(int year, int month, int dayOfMonth) Sets the current date. |