shrikanth7698 / Collapsible-Calendar-View-Android

Collapsible CalendarView is a simple calendar view which can be collapsed to save space and can be expanded when needed
https://shrikanth7698.github.io/Collapsible-Calendar-View-Android/
MIT License
430 stars 121 forks source link

How can I add Event? #75

Open Rauliciii opened 2 years ago

Rauliciii commented 2 years ago

Hi,

I want to add an UI indicator to the user that there is some event taking place in a specific date (a dot or something under the date). Does this library have that?

I tried using calendarAdapter and simply addEventTag on the collapsibleCalendar but it doesn't work

dierivera commented 2 years ago

Yes, using the addEventTag is the correct way. Maybe you need to change the color of the dot? I checked my code and using that method is enough

Rauliciii commented 2 years ago
    collapsibleCalendar.addEventTag(2021, 12, 21);

so this should work. What version on the Library are you using? I am using 'com.github.shrikanth7698:Collapsible-Calendar-View-Android:v1.0.2' but I tried with 1.0.0 and 1.0.3 also

Rauliciii commented 2 years ago

image I tried everything, as you can see

Rauliciii commented 2 years ago

Now I saw collapsibleCalendar.addEventTag(2021, 12, 21); does not work because Month starts from 0 so it should have been: collapsibleCalendar.addEventTag(2021, 12, 21);

Now I'm facing the fact that the DOT is HUGE! How can I change this?

dierivera commented 2 years ago

I think I had to fork the repo and customized on my end. You can check my repos and use that forked version

Rauliciii commented 2 years ago

image I got here but I don't know how to access the library

dierivera commented 2 years ago

implementation 'com.github.dierivera:Collapsible-Calendar-View-Android:9d6be9d129' //calendar for the agenda tab

You can use it adding this in the gradle, the numbers at the end are pointing to the last commit

Rauliciii commented 2 years ago

This is amazing!!! Good job dierivera

Rauliciii commented 2 years ago

One thing tho, do you have this change made for version 1.0.2 also? I don't enjoy the swipe motion from 1.0.3