Search code examples
androiddaterangedatechooser

Select month and year range (without days) Android


maybe someone know component (view) to select range? like:

Select from:      select to:
month+year        month+year

like this photo, but needed range selection

i finded datePicker views on gitHub only with days selection range: github

but in this component draws dates :(


Solution

  • See this question: Android DatePicker change to only Month and Year

    I would post that in comments, but I don't have permission to do so.

    There is more options than in Pratik Kate's answer.

    edit: I know those solutions do not offer range selection, but I think that could be easily solved using two pickers - 'from-to'.

    See the screenshots e.g. in this project: Material Date and Time Picker with Range Selection

    I think it can look pretty good. I can imagine many users would be confused when asked to select range using only one picker (having to use some sort of long-press or drag event?).