pelmenstar1 / rangecalendar Goto Github PK
View Code? Open in Web Editor NEWCustomizable calendar in Android with animations and range selection
License: MIT License
Customizable calendar in Android with animations and range selection
License: MIT License
At the moment, the library offers a pretty simple mechanism to do that through BroadcastReceiver. When the view is attached to the screen it's enabled, when detached - disabled. It'd better if the library offers a better way to do it.
Move the logic out of the RangeCalendarView and disable the feature by default, because registering BroadcastReceiver and processing notifications about changes is not cheap. Instead, do it through a manager-like class that will do the following:
a) be Lifecycle-aware, so we won't constantly de/register the BroadcastReceiver when the view is on/off the screen. Anyway, there should be a way not to use Lifecycle, instead, manually un/register the BroadcastReceiver.
b) provide a way to enable/disable the observation of some properties (like observe time zone changes but not date ones)
Meanwhile, the RangeCalendarView should have a public API that would notify the calendar about these changes.
At the moment, the library does nothing on configuration changes. Instead, we could update things based on it (like locale). Of course, it will only work if the host activity is not recreated on config changes.
It'd be useful in some cases. Also, the library will be more flexible.
Currently, the support seems to be flaky. That needs to be fixed.
Hi, I'm trying this library but getting error while adding the calendar in XML. I'm also getting this message after sync
Please remove usages of
jcenter()Maven repository from your build scripts and migrate your build to other Maven repositories. This repository is deprecated and it will be shut down in the future. See http://developer.android.com/r/tools/jcenter-end-of-service for more information. Currently detected usages in: root project 'RangeCalendarTest', project ':app'
These ranges are like [1; 4] โช [6; 7], so that there is no 5 cell in the range
This will be a completely different model than simple ranges so fast week selection will likely be disallowed.
Now there's only a way to disable it when you're selecting it through the dedicated method but not when the user is requesting it through gestures
For example, we select a cell on the row (cell row animation) and fast-select a week while the previous animation is not ended. In theory, if we can capture the current position of a cell, we can merge these two animations, so that a transition will be seamless.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.