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 to extend EventDay #441

Open
mgodbole opened this issue Dec 10, 2022 · 1 comment
Open

How to extend EventDay #441

mgodbole opened this issue Dec 10, 2022 · 1 comment

Comments

@mgodbole
Copy link

mgodbole commented Dec 10, 2022

I am working on a calendar app (Android) which displays historic events (This day, that year kind) and the Material-Calendar-View is perfect for me as it allows me to mark dates as well as provide different icons based on the event type.

I would like to build a feature where the user clicks on a date in CalendarView and a popup displays information on what happened that day. As per the API, EventDay is the class to incorporate this information.

Sadly, when I try to extend EventDay, I get an error saying the class is final.

Any workarounds/alternatives for this?
I am using version 1.9.0-rc03 which is the only version available in Maven Central
https://mvnrepository.com/artifact/com.applandeo/material-calendar-view

Thank you.
Maneesh

@mgodbole
Copy link
Author

Found a possible workaround.
EventDay needs a Calendar object. So I extended GregorianCalendar which will accept the custom content and passed it to EventDay.

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

1 participant