aminography / PrimeDatePicker

PrimeDatePicker is a tool that provides picking a single day, multiple days, and a range of days.
Apache License 2.0
471 stars 52 forks source link

Want to set custom date #43

Closed ParthJadav closed 3 years ago

ParthJadav commented 3 years ago

Hey, I want to set custom date with selected. Could you please help me in that ?

aminography commented 3 years ago

Hi @ParthJadav, If you mean you want to show the date picker with preselected date, usin initiallyPickedSingleDay, initiallyPickedMultipleDays, initiallyPickedRangeDays on the builder you can achieve this. For example:

val datePicker = PrimeDatePicker.bottomSheetWith(today)
        .pickMultipleDays(multipleDaysPickCallback)
        .initiallyPickedMultipleDays(listOfDays)  // <--
        .build()

datePicker.show(supportFragmentManager, "SOME_TAG")