Comments (6)
I am working on this issue. I think the problem is with the KalendarPagingSource Class. In this class we filter the kalendar items.
I think the kalendaritems are not filtered correctly. I am not sure though. I think it should be changed from:
val kalendarItems = kalendarRepository.generateDates(page) .filter { date -> date.year >= today.year && date.month.value >= today.monthNumber }
to
val kalendarItems = kalendarRepository.generateDates(page) .filter { date -> date.year >= today.year && date.month.value >= today.monthNumber }
What happens is that when we filter dates in the first example, we say that the year should be greater than or equal to the current year which is 2023. It means that only dates whose year is greater than or equal to 2023 are allowed. Thats fine but the problem here is that the months are also filtered according to the today's month. Thats why we say see august month after December as any dates before the month of august are not in the kalendaritems.
In the next example we solve this issue.
I have created a pull request too for this issue: Fixed InCorrect Month Progression Bug
from kalendar.
how did u make a dot on Day?
from kalendar.
Just Use the KalendarEvents function inside the Kalendar
from kalendar.
can u show how to use it like for instance?
from kalendar.
Sure, Here is an example how you can add events to your calendar
Kalendar( currentDay = currentDay, kalendarType = kalendarType, modifier = modifier, daySelectionMode = daySelectionMode, showLabel = showLabel, kalendarHeaderTextKonfig = kalendarHeaderTextKonfig, kalendarColors = kalendarColors, kalendarDayKonfig = kalendarDayKonfig, onDayClick = onDayClick, dayContent = dayContent, headerContent = headerContent, events = KalendarEvents( listOf(KalendarEvent( date = //date eventName = "event"//add your event name ) ), onRangeSelected = onRangeSelected, onErrorRangeSelected = onErrorRangeSelected ) }
from kalendar.
I dont know how to set dot in day each....
Could u share me ur code..? I want to refer to it
from kalendar.
Related Issues (20)
- Listener for previous and next month HOT 3
- Crash HOT 1
- current day circle border order HOT 1
- Questions about Kalendar's functionality
- Support swiping to change dates HOT 2
- Allow event indicator colour to be specified HOT 3
- Allow default configs to be copied and reused easily HOT 2
- Error "java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/compose/animation/AnimatedContentScope;" HOT 14
- Provide previous/next month callbacks
- From what version of Android does this library support? HOT 2
- dayBackgroundColor size modify
- Showing the week value(mon~sun) is different of two view HOT 1
- java.lang.NoSuchMethodError: No static method - AnimatedContent HOT 2
- How to change only the color of Text on a special day (Sunday)
- How to change the month of calendar
- Kalendar no static method AnimatedContent HOT 16
- persian calendar HOT 1
- Cannot access class 'kotlinx.datetime.LocalDate'. Check your module classpath for missing or conflicting dependencies HOT 1
- Kalendar Endlos, daySelectionMode: Incorrect selection
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 kalendar.