Comments (8)
Yes, selected day is a necessity.
from compactcalendarview.
Umm interesting, I never noticed this but I made a mistake when naming a method. setMonth actually sets the current day rather than the month. So, as a work around, on a day click you can use setMonth but just pass the currentdate. This will redraw the calendar and highlight the day for you.
I'll put in a fix to set the day automatically when a day is selected and fix that method name to be something like, "setDay" and add a method to set the month as well. Thanks for pointing this one out.
from compactcalendarview.
Ok, it is loading pretty slow when redrawing the calendar with setMonth() so it isn't the best solution.
from compactcalendarview.
Yeah, this is a temporary work around to get the functionality working until I fix the bug. Actually, it will redraw all three calendars (previous month, current month and next month). Ideally, selecting a day should draw only the current month which should improve any performance problems.
Alternatively, remove the background for the previous day that was selected and draw a new one where the current one is. This will require more code changes but probably be the best way to do it.
from compactcalendarview.
When do you estimate that the bug will be fixed? 😄
from compactcalendarview.
I'll try squeeze the change in the next few days if I can, but I can be busy because of work and what not.
from compactcalendarview.
I think the actual slowness was caused by the listener being called too early. This is because the listener would be called before the actual calendar was redrawn. So, if the code in clients implementation of the CompactCalendarViewListener
did alot of processing, then it would delay the calendar from being drawn. This probably made it seem like it was slow in drawing. So I re-factored things slightly, so that the calendar would be drawn first and then the listener for a day click is called, which seems more correct.
from compactcalendarview.
Note, setMonth
has been replace by setCurrentDate
since it actually describes what its doing better.
from compactcalendarview.
Related Issues (20)
- Swipe left and swipe right listener HOT 1
- Background color of abbreviations (weeks)
- Events from REST API
- Work on emulator but not on device
- One event on day : Big circle; multiple event on a day : Big circle + little dot
- Can I use another fonts?
- How to select more days and disable others days tap? How to enable tap only on selected days
- error with add event function
- Color description bar
- error: failed linking references.
- error: resource android:attr/lStar not found.
- using talkback
- Adding Events to CompactCalendar from api call
- Clear Selection
- How to remove the selected current date background when month is scrolled?
- How to present only 1 week ?
- How to pass Calendar as argument?
- Issue
- Events not showing in some android devices api level 33
- Cannot add event line indicator inside selected day circle
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 compactcalendarview.