Comments (12)
Pls help me xD ty
from flexiblecalendar.
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.
The issue continues
from flexiblecalendar.
Can you write a small test that reproduce the issue in the demo app?
from flexiblecalendar.
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.
if you change the "for" for an specific Date it will work fine
from flexiblecalendar.
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;
}
});
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.
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.
Do you want to show the count or the events as shown in the first calendar demo?
from flexiblecalendar.
the count
from flexiblecalendar.
join https://gitter.im/p-v/FlexibleCalendar
from flexiblecalendar.
Feel free to reopen in case you issue is not resolved.
from flexiblecalendar.
Related Issues (20)
- Calendar month not show all dates HOT 1
- How to convert month to weekview in the library HOT 1
- Populate event on calendar load - how to get start and end date HOT 1
- On month scroll / moving to next / previous month HOT 1
- Event dot is not showing for Today's event HOT 1
- Date selected remains persistent on month change. HOT 6
- Cannot change color of selected date (text)
- How can I setEvent on current day? HOT 4
- Remove android:label from the Manifest
- Event color issue HOT 1
- Calendar not showing correctly on tablet in landscape mode
- how to unselect selected date by click selected date
- Add event dyanamically
- How to set start and End date for Calender? HOT 1
- Scrolling Issue in Flexible Calender
- designing
- How to get start and End date for Calender?
- How to change calendar number convert arabic?
- Attempt to invoke virtual method 'boolean com.p_v.flexiblecalendar.entity.SelectedDateItem.equals(java.lang.Object)' on a null object reference
- How can i set visible only next 14 days
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flexiblecalendar.