Material-components-android: [Feature Request] Add Neutral Button to MaterialDatePicker

Created on 26 May 2020  路  3Comments  路  Source: material-components/material-components-android

Use case: There are times when one wants to clear a selected date (i.e. I have a task with a due date, I want to use the MaterialDatePicker to display the current date, pick a new date OR clear the selected date.

The first two are currently supported, the 3rd requires either the ability to extend the class and override the onCreateView (not possible because the class is final) or adding support for a Neutral button.

Awaiting Design Feedback

Most helpful comment

Thanks for this feature request! This is currently awaiting design feedback

All 3 comments

Thanks for this feature request! This is currently awaiting design feedback

Any updates on this?

Sample implementation. I did this by copying the full class into my codebase and adding neutral button support.

Screenshot_20201105-073151

Was this page helpful?
0 / 5 - 0 ratings