roboto-calendar-view icon indicating copy to clipboard operation
roboto-calendar-view copied to clipboard

Incorrect marking of day

Open ronarooney opened this issue 8 years ago • 2 comments

I am getting dynamic date and trying to mark days in roboto calendar view but the dates r 5 days ahead or so .

HEre is my code

int markDate =Integer.parseInt(finalDate); Calendar calendar =Calendar.getInstance(TimeZone.getDefault()); calendar.set(Calendar.DAY_OF_MONTH,markDate); robotoCalendarView.markCircleImage1(calendar); robotoCalendarView.markCircleImage2(calendar);

How to solve this issue

ronarooney avatar Oct 01 '16 05:10 ronarooney

The same issue

Have you solved it ?

oshurmamadov avatar Nov 10 '16 06:11 oshurmamadov

Hi, I have the same issue. A solution to this is :

if(robotoCalendarView.getDate().getMonth() == d.getMonth() && robotoCalendarView.getDate().getYear() == d.getYear()) {
       robotoCalendarView.markCircleImage1(d);
}

ghost avatar May 29 '19 17:05 ghost