Giter Club home page Giter Club logo

Comments (12)

telmoxp1 avatar telmoxp1 commented on July 20, 2024

Pls help me xD ty

from flexiblecalendar.

p-v avatar p-v commented on July 20, 2024

This should work normally. If you are updating datameio or m_parts, then call FlexibleCalendarView#refresh() whenever you change them so that the changes are reflected in the currently visible view.

If that doesn't solve, can you please fork and update the demo in the forked repo reproducing the issue?

from flexiblecalendar.

telmoxp1 avatar telmoxp1 commented on July 20, 2024

The issue continues

from flexiblecalendar.

p-v avatar p-v commented on July 20, 2024

Can you write a small test that reproduce the issue in the demo app?

from flexiblecalendar.

telmoxp1 avatar telmoxp1 commented on July 20, 2024

Put this code in Calendar 3 or 4 , in calendar 1 it works fine.

calendarView.setEventDataProvider(new FlexibleCalendarView.EventDataProvider() {
@OverRide
public List getEventsForTheDay(int year, int month, int day) {
Calendar kalendar= Calendar.getInstance() ;
for (int i=0;i<=10;i++) {
if (year == kalendar.get(Calendar.YEAR) && month == kalendar.get(Calendar.MONTH) && day == kalendar.get(Calendar.DATE)) {
List eventColors = new ArrayList<>();
for (int ib = 0; ib <= 10; ib++) {
eventColors.add(new CalendarEvent(android.R.color.holo_red_dark));
}
return eventColors;
}
kalendar.add(Calendar.DATE,1);
}
return null;
}
});

from flexiblecalendar.

telmoxp1 avatar telmoxp1 commented on July 20, 2024

if you change the "for" for an specific Date it will work fine

from flexiblecalendar.

p-v avatar p-v commented on July 20, 2024

I added the following,

calendarView.setEventDataProvider(new FlexibleCalendarView.EventDataProvider() {
        @Override
        public List<? extends Event> getEventsForTheDay(int year, int month, int day) {
            Calendar kalendar= Calendar.getInstance() ;
            for (int i=0;i<=10;i++) {
                if (year == kalendar.get(Calendar.YEAR) && month == kalendar.get(Calendar.MONTH) && day == kalendar.get(Calendar.DATE)) {
                    List eventColors = new ArrayList<>();
                    for (int ib = 0; ib <= 10; ib++) {
                        eventColors.add(new CalendarEvent(android.R.color.holo_red_dark));
                    }
                    return eventColors;
                }
                kalendar.add(Calendar.DATE,1);
            }
            return null;
        }
    });

It gave me,
screen shot 2015-09-16 at 7 35 00 pm

What are you expecting? If you want round dots you will have to use CircularEventCellView. It will be helpful if you can explain me your use case.

PS:
getEventsForTheDay is called for every visible date cell. You don't want to loop over again whenever the cell is drawn. Better if you use some data structure to store the events and get the event list directly when the cell is to be drawn(CalendarActivity3 shows it to some extent).

from flexiblecalendar.

telmoxp1 avatar telmoxp1 commented on July 20, 2024

Have An Event List and quandovou for the calendar is supposed to show him every day how many events have for each day.

from flexiblecalendar.

p-v avatar p-v commented on July 20, 2024

Do you want to show the count or the events as shown in the first calendar demo?

from flexiblecalendar.

telmoxp1 avatar telmoxp1 commented on July 20, 2024

the count

from flexiblecalendar.

p-v avatar p-v commented on July 20, 2024

join https://gitter.im/p-v/FlexibleCalendar

from flexiblecalendar.

p-v avatar p-v commented on July 20, 2024

Feel free to reopen in case you issue is not resolved.

from flexiblecalendar.

Related Issues (20)

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.