material-components / material-components/material-components-android

[MaterialDatePicker] Selection of Year, Month or Week only

Open
#1,961 2 comments 13 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request Widget: DatePicker
Dominant language
Java
Stars
17.4k
Forks
3.2k
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**
In our app, we have a statistics feature. The user can choose whether he wants to show statistics for either **a year, a month, or a week**. The user can then select which year, month, or week he wants to have displayed.

**Describe the solution you'd like**
The _MaterialDatePicker_ should have a feature, so the user can select either a year, a month, or a week and not just a custom time range that can't be restricted.
Right now we have a custom solution in place which is tedious to maintain. It is error-prone and not handy to use

Thanks,

Best Thomas

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the MaterialDatePicker API and its current custom-range behavior described in the issue; no source files or tests are identified. Define the supported year, month, and week selection modes and their expected restrictions before determining the implementation and test coverage.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
mobile
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.