Comments (5)
Hi,
Sounds like a bug. We will be happy to see your PR.
BR,
Applikey team
from cosmocalendar.
Sure, no problem. What's the expected behavior here ? Not allow the user to select future dates after the disabled day(s) ?
from cosmocalendar.
Yes, you are 100% right!
from cosmocalendar.
Cool, see if I can drop a PR this week
from cosmocalendar.
if u want this feature just add the code in CalanderView class in getSelectedDays() functions
` /**
* Returns all selected days
*
* @return
*/
public List getSelectedDays() {
List selectedDays = new ArrayList<>();
for (Iterator monthIterator = monthAdapter.getData().iterator(); monthIterator.hasNext(); ) {
Month month = monthIterator.next();
for (Iterator dayIterator = month.getDaysWithoutTitlesAndOnlyCurrent().iterator(); dayIterator.hasNext(); ) {
Day day = dayIterator.next();
// Log.e("day",day.getCalendar().getTime()+"");
if (selectionManager.isDaySelected(day)) {
if(!day.isDisabled()){
selectedDays.add(day);
}else {
selectedDays.clear();
clearSelections();
}
}
}
}
return selectedDays;
}`
from cosmocalendar.
Related Issues (20)
- I want to set an initial value for a date in the calendar.
- Get rid off month outlines
- Wrong translation of the months
- Calendar displaying day wrong
- how to disable previous month button?
- how disable or remove PREVIOUS dates ???
- Having trouble with changing weekdays in Kotlin
- Scroll issue when used in BottomSheetDialogFragment
- How to change current day text color
- Persian calendar
- How can i change to weekly view? HOT 4
- Can I change the starting week to Sunday? HOT 1
- Feature
- Modify color of the current day triangle?
- I want to mark few dates as selected and rest as disabled. How can i do this.
- Adding Marker in Calendar using Connected Days for events, task, note, etc. HOT 3
- New Version for Maven Central ?
- How to disable the month scroll? (Keep calendar limited to only current month)
- Abandoned repo. Avoid using.
- Select Start Date
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 cosmocalendar.