Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I add Event? #75

Open
Rauliciii opened this issue Dec 20, 2021 · 9 comments
Open

How can I add Event? #75

Rauliciii opened this issue Dec 20, 2021 · 9 comments

Comments

@Rauliciii
Copy link

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
Copy link

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
Copy link
Author

Rauliciii commented Dec 20, 2021

    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
Copy link
Author

image
I tried everything, as you can see

@Rauliciii
Copy link
Author

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
Copy link

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

@Rauliciii
Copy link
Author

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

@dierivera
Copy link

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
Copy link
Author

This is amazing!!! Good job dierivera

@Rauliciii
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants