Giter Club home page Giter Club logo

crunchycalendar's People

Contributors

crabgore avatar imofas avatar itolianezzz avatar ladalarkina avatar limanskaya avatar raseri avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

crunchycalendar's Issues

Event indicator types and increased indicator count

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?

Font Attributes

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,

Impossible to customize some colors

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.

Feature suggestions

thx for the library i just wanted to share our requirements, maybe it is interesting for you. All come from real business cases:

  • being able to quickly navigate years(e.g. to select birthday without needing to scroll/click thousand times)
  • filter to select what dates should not be allowed. either by manually specifying dates or provide defaults((e.g. weekends, holidays)

Multiple date range selection

Hi, this library is so cool, but i need to display multiple date range selection on my app, do you think it's possible?

How to set a specific color background for specific dates?

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!

Logo Design: CrunchyCalendar

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

How to set "firstdayofweek"

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?

CalendarView.setOnDateClickLIstener from Java

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

Theming

First of all, thanks for the library :)

Please, add more possibilities for theming:

  1. Make properties public, to allow theming from code, not xml only
  2. Do not ignore defStyleAttr from the constructor, right now it just goes to the super classes, but is ignored in the "obtainStyledAttributes" in init block

Performance drawbacks

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

Entry in month view to reflect time of entry

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!

Crash in CalendarDateView

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

Is it possible to go to next or previous month instead of year when using the arrows that are next to month?

I mean when pressing the arrow shown in the attached image you would be able to go to next month:

arrowcalendar

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).

How to display a single month?

Is there a way to display a single month, such as
image

?

I want to create an events-like calendar, and I want the user to browse month by month, as I'll display information below the calendar.

Is this possible / planned with Crunchy?

New logo/icon proposal

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

Adding events after loading JSON data

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.

Disabled day cell with custom background color

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.

Theme Dark problems - Customizing all colors does not work

How can I set the weekend background colors?

If I use a dark theme I get this output out of the box:
image

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 --> ??

Output is at the moment:
image

Not scrolling to current day.

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.

create event in calendar

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

Date Range Selection and dateSelectionFilter

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.

Sample App not available in Google Play for LineageOS 19.1 (Android 12)

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!

Timezone settings

Hello again!

How can we deal with different timezones? Is there any built-in solution or what is the suggested method?

Thank you.

OnDateClickListener Method In Java

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??

Disabled days

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.

Remove Month label/empty space

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

Translation

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.

Possible to add a "LongClickListener"

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.

Can I add a selection programmatically?

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? :/

Date scrolling issue

can i change vertically scrolling date to horizontal scroll with move month name in top left in side to year?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.