-1

I have a problem where when I select a day from a spinner (ex. Wednesday), I want to show only the dates of Wednesday in DatePickerDialog. How can I make that happen? I want to disable other dates and enable the days that match the selected spinner item.

Selected Item on Spinner

Dates on DatePickerDialog but I wanted only to show dates according to selected spinner item

I'm using MaterialDateTimePicker. Is there a way to make this happen or a library that will make this happen?

Hadas Kaminsky
  • 1,285
  • 1
  • 16
  • 39
Neil
  • 37
  • 1
  • 8
  • This is not possible with native `DatePickerDialog` unless you are using a third party library. – ADM Jan 09 '19 at 04:25

1 Answers1

0

Since you already use MaterialDateTimePicker, you can select the acceptable dates for the picker with the method setSelectableDays(Calendar[] days)

Hadas Kaminsky
  • 1,285
  • 1
  • 16
  • 39