0

I have been trying so many library's and different codes to be able to achieve building custom calendar and be able to disable all week days except specific days.

im getting arraylist in API with list of days that are available to delivery, so the calendar need to display the whole month disabled except the days that im getting from API for example: he can select every Friday and Saturday only.

Hossam Hassan
  • 795
  • 2
  • 13
  • 39

2 Answers2

0

You can always build your own calendar here is a link to develop your own calendar in 7 setps: https://medium.com/@avi_kr16/creating-a-simple-android-calendar-in-7-steps-fa18a7945350

hope it helps

Antoine El Murr
  • 317
  • 1
  • 13
0

You can use this library Material Date Time Picker, here you can set an option to show specific dates, For Example:

datePicker.setDisabledDays(Calendar[] days)

And an pass array of Calendar as a parameter which contains all the selectable date.Get all Fridays in a date Range in Java

Uday Nayak
  • 429
  • 4
  • 20