cleverpumpkin / crunchycalendar Goto Github PK
View Code? Open in Web Editor NEWA beautiful material calendar with endless scroll, range selection and a lot more!
License: MIT License
A beautiful material calendar with endless scroll, range selection and a lot more!
License: MIT License
I've been working with Crunchy Calendar for a couple days and am fitting it into my use case where I need square event indicators and possibly more than 4 indicators showing on each calendar cell.
Is this something that you might have on the roadmap for this library or would you be willing to look at a PR if I had some suggested changes to have event indicator types? Or would I be better off maintaining my fork separately?
Is there a way to change the font family, text size, etc. for the DaysBarView and the header (month/year) of the calendar? I would like to match the calendar text attributes to the rest of my application,
Hello!
Why impossible to customize colors:
"calendar_date_selected_background"
and probably "calendar_date_today_text_color"
Hardcoded light blue color not suitable for some color themes.
I don’t understand how to change it.
thx for the library i just wanted to share our requirements, maybe it is interesting for you. All come from real business cases:
Добрый день.
Как проверить выбрана хотябы одно дата или нет?
Спасибо.
Hi, this library is so cool, but i need to display multiple date range selection on my app, do you think it's possible?
I have a REST service that returns an array of dates and an int value, depending of that value, the date will have a specific color. Example:
if the value is between 0 and 50, the color will be green.
if the value is between 51 and 100 the color will be yellow.
and so on.
PD. The library is awsome, the only thing I have left to implement is this, help :(.
Thanks!
Hello!
I examined your project and I saw that Crunchy Calendar has no logo design yet. I'm a graphic designer and I like to support open source projects. I would like to design a logo for your project if you interested, I will be happy to work with you! :)
Best Regards
Baran Pirinçal
Graphic Designer
Thanks for this great library.
I have just added it to my project but I don't find a way to set the first day of week.
How is this possible?
Hi,
Thanks for your support.
I have been using this function without problems so far using a lambda function with java 1.8.
But suddenly today this is giving an error.
My code use to work like this:
calendarView.setOnDateClickListener(calendarDate -> {
MeditationsDialog dialog = new MeditationsDialog(getActivity(), calendarDate.getDate());
dialog.show();
return null;
});
But now I get an error like this:
Function1<? super CalendarDate, Unit> is not a functional interface
Any idea how to fix this?
Thanks
Hi, some good calendar apps using CrunchyCalendar please?
I know of Calendula (missing some features), also https://github.com/sndnv/eventually
Thanks!
First of all, thanks for the library :)
Please, add more possibilities for theming:
I think it would be convenient to make an example on how these functions could be implemented.
Indeed, I'm having problems to do a test getDatesIndicators() function, though I'm trying to do it in java code as seen here: https://stackoverflow.com/questions/63298266/how-to-implement-kotlin-interface-in-java.
Thanks for the attention.
I am having problems setting indicators, and not sure how to add a custom color depending on the result of a function calculating a score.
Try to implement calendar on nested RecyclerViews (outer RV+LinearLayoutManager hold month items & every month has its own inner RV+GridLayoutManager with its days) and compare performance of both implementation. Your variant with single RV+GridLayoutManager is much slower
Hi,
Again thanks for such a good work.
One feature I like about the google calendar app is that the entry's time will change where in the day it appears. For instance an entry early in the day will be shown high up and a entry at noon should be in the middle of the day view and a entry at night should be by the end of the day box.
Thanks!
Hello,
Since version 2.2 there is an issue with onCreateDrawableState
in CalendarDateView
. To be exact in this line
java.lang.NullPointerException: Attempt to invoke virtual method 'int ru.cleverpumpkin.calendar.DateCellSelectedState.ordinal()' on a null object reference at ru.cleverpumpkin.calendar.CalendarDateView.onCreateDrawableState(CalendarDateView.kt:177) at android.view.View.getDrawableState(View.java:23776) at android.view.View.initializeScrollbarsInternal(View.java:6711) at android.view.View.<init>(View.java:6103)
It happens when CalendarDateView
is being created with scrollbars. As you can see in stacktrace this triggers onCreateDrawableState()
to be called before cellSelectionState
is initialized.
Fix suggestion: block scrollbars by setting scrollbars
to none
for CalendarDateView
I mean when pressing the arrow shown in the attached image you would be able to go to next month:
Would it be posible to change calendar behavior so it just displays one month at once (user can just scroll for that month) and pressing that arrow would show next month? (For this case let's consider that the shown month would be June 2018 and when the arrow were to be pressed it would show July 2018).
Good day sir. I am a graphic designer and i am interested in designing a logo for your good project. I will be doing it as a gift for free. I just need your permission first before I begin my design. Hoping for your positive feedback. Thanks
First of all, I really love this calendar. I have tried a lot of calendars in the past few days but this was by far the best and easiest to implement.
I am currently having an issue with reloading the event indicators after loading JSON from the google Calendar API. The calendar runs the generateCalendarDateIndicators() function before the data is there however when I run it manually after I have the data, no new dots appear. I am currently running the code inside of its own activity instead of a fragment.
I am imagining that I need to have the calendar refresh the UI once I have the JSON data. I have tried a few different ideas for refreshing the UI but they all lead to refreshing the entire page which puts me in a big circle.
Any thoughts or suggestions would be well appreciated.
Thank you for this awesome library again. :)
Is there any way to set the 'disabled days' cell's background color conditionally?
Example: one of them 'reserved' (red), another one is 'processing' (orange) stb..
Thank you.
Currently it shows all months one by one on Scroll, But i want only one month..
Can you please add the 2.1.0 to jCenter/Maven?
How can I set the weekend background colors?
If I use a dark theme I get this output out of the box:
So I need to set some colors that it looks OK:
Month Text Label Color --> app:calendar_month_text_color --> working
Date Text Color --> app:calendar_date_text_color --> not working --> working with a selector
Date Background --> app:calendar_date_background --> working
Weekend Date Background --> ??
Hi.
In setupCalendar() if initialDate and minDate are too far apart then it won't scroll to initialDate.
For example.
Set calendar with minDate as 1st of January of this year and initialDate as today (August 1st) then when loaded it won't scroll to today.
moveToDate() also won't scroll to that date.
Now, if we initialize calendar with minDate set as March and initialDate as August then when loaded we will see August on the screen.
I guess it has something to do with how many items recyclerView loads because after we scroll to today it all works fine.
Hello,
From server i got some date and i want to show this date as a event and mark it. I want to use java but i can't find a helpful sample to add event into the calendar.
I am stack on this. say i have a array of date i want to show this date into the calendar with a mark
Thanks in advance
Hi,
Thanks for the great library.
Is it possible to disallow users to select date ranges if one or more of the days in the selected range is not selectable?
So, let's say, I'm setting my dateSelectionFilter to not allow selecting date 17/06/2019
. In that case, user should not be able to select a range like between 15/06/2019
and 19/06/2019
or a wider range because that one not selectable day is in the range.
I checked and couldn't find a solution for it. Is it possible to do that at the moment or do we need an update?
I can still manually achieve this by after user makes a range selection, I can loop through the selected days and check them one-by-one, but just wondered if the CalendarView have this feature already.
Hi and thanks for the project! The vertical scrolling looks great!
Unfortunately your Sample App https://play.google.com/store/apps/details?id=ru.cleverpumpkin.calendar.sample is shown as "unavailable on your device because it was designed for an older version of Android" in Google Play when accessed from a LineageOS 19.1 (Android 12) device.
I haven't tried to install manually yet, but maybe you would be so kind as to remove this limitation? Thank you!
Hello again!
How can we deal with different timezones? Is there any built-in solution or what is the suggested method?
Thank you.
Please help me with the OnDateClickListener method in java.... please explain the parameters used in the method.....it is not explained here.
It looks like:
// Set date click callback
calendarView.onDateClickListener = { date ->
// Do something ...
// for example get list of selected dates
val selectedDates = calendarView.selectedDates
}
It is not compatible with java and what are the parameters passed in this method??
Thank you for this awesome library.
Is it possible to define disabled days? I have to select a range, but there may be days in the calendar that cannot be selected for some reason.
Hi,
First of all thank you for providing such a nice calendar for the people.
I would like it if it was possible to remove the month label and the extra wasted spaces that defines a new month. It would be nice if the month could be presented transparently behind the month or at some other place.
Thank you
Is there a way to translate or set the names of the months and days? This is such a great project and I hope someone can help me.
Can you please add a "LongClickListener" for the date selection?
A click selects the date but I have added the indicators and want to show the "Events" on this day with a long click of the user.
So short click selects the date and long click would open a popup with the events.
Hello,
I would like to select all the week (Monday to sunday) when a user clicks on a day.
I'm trying to select all days with onDateClickListener
and setupCalendar
but it's not work.
Do you have any idea? :/
Hello, rAseri, I can select multiple dates but cannot deselect date.
Could you tell me the way to do that?
can i change vertically scrolling date to horizontal scroll with move month name in top left in side to year?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.