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

[MaterialDatePicker] Relax Visibility of Date Selection Components #1268

Open
froriz5 opened this issue May 3, 2020 · 4 comments
Open

[MaterialDatePicker] Relax Visibility of Date Selection Components #1268

froriz5 opened this issue May 3, 2020 · 4 comments

Comments

@froriz5
Copy link
Contributor

froriz5 commented May 3, 2020

Problem

Some of the MaterialDatePicker pre-built components have a restricted library scope; @RestrictTo(Scope.LIBRARY_GROUP)

This means that consumer apps cannot extends those classes, in order to implement more custom behavior, that is built on top of their base behavior.

Examples:

Solution

Removing these Library Scope Restrictions would be much appreciated, so that we can extend custom behavior on top the existing components, without having to duplicate functionaility.

For example, if one wanted to create a month selector that would select a month in a date range of [1st of month - last day of month].

One could extend the RangeDateSelector implementation and slightly modify some of the behavior to accomplish such a case, without having to rewrite how RangeDateSelector works.

monthPickerGif

@manuelwenner
Copy link

I would really appreciate this too because currently i can't use the component :(

@mkett
Copy link

mkett commented Dec 22, 2020

It would be nice to customize MaterialDatePicker like DatePickerDialog.

  • set button text
  • set min, max date

I am also missing a styling documentation. A current custom DatePickerDialog style does not match for MaterialDatePicker at all.

@gregkorossy
Copy link

Any news about this? This is needed for use cases where we want to control what the selection really should be when the user taps on a day (such as selecting a whole week, a month etc.).

@brijesh-kumar-sharma-zomato

any update on this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
6 participants