keyrunHORNET / date_picker_converter

Nepali Date Picker with Date conversion from BS to AD and vice-versa
Apache License 2.0
36 stars 23 forks source link

Highlight days in calendar not working #16

Open nawinkhatiwada opened 4 years ago

nawinkhatiwada commented 4 years ago

I was trying to show highlight days for all Saturday But it's not working on both my project and sample project present in the library. it is working in date picker dialog but not in the calendar view.

   override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
        super.onViewCreated(view, savedInstanceState)
        calendarView = view.findViewById(R.id.calendar)
        calendarView?.setOnDateSetListener(this)
        calendarView?.setHighlightedDays(DateConverter.getAllSaturdays())
    }

The version used: 3.0-beta OS: Android Q, Pixel 2 API 19 emulator

View issue here: https://imgur.com/9XAGrc5

keyrunHORNET commented 3 years ago

getAllSaturdays() is not a complete feature right now. You will have to provide your own array of days to setHighlightedDays() method.