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

Whats up with 30th JUN ? #64

Open ThynkSight opened 2 years ago

ThynkSight commented 2 years ago

PrimeCalendar today = new CivilCalendar(); PrimeCalendar tomorrow = new CivilCalendar(); tomorrow.add(Calendar.DATE, 1);

        LightThemeFactory themeFactory = DatePickerTheme.Companion.getTheme();

        PrimeDatePicker datePicker = PrimeDatePicker.Companion.dialogWith(today)
                .pickSingleDay(callback)
                .initiallyPickedSingleDay(startDate)
                .disabledDays(weekends)
                .minPossibleDate(tomorrow)
                .applyTheme(themeFactory)
                .build();

        datePicker.show(requireActivity().getSupportFragmentManager(), "SOME_TAG");

https://user-images.githubusercontent.com/106729791/176512055-0eaf1479-cd6e-4428-8a42-5a43678b9a13.mp4