Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Docs] update DatePicker.md #4549

Open
manabu-nakamura opened this issue Jan 22, 2025 · 0 comments · May be fixed by #4550
Open

[Docs] update DatePicker.md #4549

manabu-nakamura opened this issue Jan 22, 2025 · 0 comments · May be fixed by #4550

Comments

@manabu-nakamura
Copy link
Contributor

Description: https://github.com/material-components/material-components-android/blob/master/docs/components/DatePicker.md:

Subscribe to button clicks or dismiss events with the following calls:

picker.addOnPositiveButtonClickListener {
   // Respond to positive button click.
}
picker.addOnNegativeButtonClickListener {
   // Respond to negative button click.
}
picker.addOnCancelListener {
   // Respond to cancel button click.		<--
}
picker.addOnDismissListener {
   // Respond to dismiss events.
}

Expected behavior:

Subscribe to button clicks, cancel and dismiss events with the following calls:

picker.addOnPositiveButtonClickListener {
   // Respond to positive button click.
}
picker.addOnNegativeButtonClickListener {
   // Respond to negative button click.
}
picker.addOnCancelListener {
   // Respond to cancel events.			<--
}
picker.addOnDismissListener {
   // Respond to dismiss events.
}

See also: https://github.com/material-components/material-components-android/blob/master/docs/components/TimePicker.md:

Subscribe to positive button click, negative button click, cancel and dismiss events with the following calls:

picker.addOnPositiveButtonClickListener {
   // call back code
}
picker.addOnNegativeButtonClickListener {
  // call back code
}
picker.addOnCancelListener {
   // call back code
}
picker.addOnDismissListener {
   // call back code
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants