Material Date Picker
A Dialog with a header, MaterialCalendar, and set of actions.
For more information, see the component developer guidance and design guidelines.
Types
Properties
Functions
Link copied to clipboard
The supplied listener is called when the user cancels the picker via back button or a touch outside the view.
Link copied to clipboard
The supplied listener is called whenever the DialogFragment is dismissed, no matter how it is dismissed.
Link copied to clipboard
open fun addOnNegativeButtonClickListener(onNegativeButtonClickListener: View.OnClickListener): Boolean
The supplied listener is called when the user clicks the cancel button.
Link copied to clipboard
open fun addOnPositiveButtonClickListener(onPositiveButtonClickListener: MaterialPickerOnPositiveButtonClickListener<in S>): Boolean
The supplied listener is called when the user confirms a valid selection.
Link copied to clipboard
Removes all listeners added via addOnCancelListener.
Link copied to clipboard
Removes all listeners added via addOnDismissListener.
Link copied to clipboard
Removes all listeners added via addOnNegativeButtonClickListener.
Link copied to clipboard
Removes all listeners added via addOnPositiveButtonClickListener.
Link copied to clipboard
Returns the text to display at the top of the DialogFragmentThe text is updated when the Dialog launches and on user clicks.
Link copied to clipboard
Returns an
S
instance representing the selection or null if the user has not confirmed a selection.Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun onCreateView(@NonNull layoutInflater: LayoutInflater, @Nullable viewGroup: ViewGroup, @Nullable bundle: Bundle): View
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Removes a listener previously added via addOnCancelListener.
Link copied to clipboard
Removes a listener previously added via addOnDismissListener.
Link copied to clipboard
open fun removeOnNegativeButtonClickListener(onNegativeButtonClickListener: View.OnClickListener): Boolean
Removes a listener previously added via addOnNegativeButtonClickListener.
Link copied to clipboard
open fun removeOnPositiveButtonClickListener(onPositiveButtonClickListener: MaterialPickerOnPositiveButtonClickListener<in S>): Boolean
Removes a listener previously added via addOnPositiveButtonClickListener.
Link copied to clipboard
Returns the UTC milliseconds representing the first moment in current month in local timezone.
Link copied to clipboard
Returns the UTC milliseconds representing the first moment of today in local timezone.