question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[MaterialDatePicker] docs

See original GitHub issue

Is your feature request related to a problem? Please describe. No docs found for MaterialDatePicker

Describe the solution you’d like Add docs, examples about how to use MaterialDatePicker including, how to use new range select.

Describe alternatives you’ve considered using a third party library to implement date range select.

Additional context I was came to know about new material component release, something that caught my eye was range select in MaterialDatePicker, but at least I did not found any docs on how to use MaterialDatePicker. I did not even found a view in android studio layout, just the android.wiget.datepicker, even though I added the material dependency.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
masteramyxcommented, Nov 15, 2019

@marcoRS Were you able to set the time zone on the calendar date picker itself? I have a method that builds the calendar and returns the long of the date/time selected. I’m trying to avoid having to set the time zone on all my SimpleDateFormatters as such.

            sSimpleDateFormat= new SimpleDateFormat("MM/dd/yyyy", Locale.getDefault());
            sSimpleDateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));

Not sure how I can do this

2reactions
gabrielemariotticommented, Oct 7, 2019

You can start from the demo example.

Something like:

   MaterialDatePicker.Builder<Pair<Long, Long>> builderRange =
        MaterialDatePicker.Builder.dateRangePicker();
    CalendarConstraints.Builder constraintsBuilderRange = new CalendarConstraints.Builder();
    //.....
    builderRange.setCalendarConstraints(constraintsBuilderRange.build());
    MaterialDatePicker<?> pickerRange = builderRange.build();
    pickerRange.show(getSupportFragmentManager(), pickerRange.toString());
Read more comments on GitHub >

github_iconTop Results From Across the Web

MaterialDatePicker - Android Developers
com.google.android.material.datepicker. ... Used to create MaterialDatePicker instances with default and ... Documentation and Downloads.
Read more >
Date pickers – Material Design 3
Date pickers can display past, present, or future dates relevant to a task; Clearly indicate important dates, such as current and selected days ......
Read more >
Material Date Picker Redesign (PUBLICLY SHARED)
The current Flutter Material Date Picker is invoked via the showDatePicker() method. This presents the user with a dialog that allows them to...
Read more >
Datepicker - Angular Material
Documentation licensed under CC BY 4.0. Select a version of the documentation. Select a theme for the documentation. Copy link to example. View...
Read more >
Datepicker - @material-ui/pickers component
... from "@material-ui/styles"; // this guy required only on the docs site to work with dynamic date library import { makeJSDateObject } from...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found