101loop / datepickertimeline Goto Github PK
View Code? Open in Web Editor NEWAndroid Date Picker Library that provides a calendar as a horizontal timeline
License: Apache License 2.0
Android Date Picker Library that provides a calendar as a horizontal timeline
License: Apache License 2.0
Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0]
Possibility to set x day to be selected at init time
Why are you using index in place of actual month number
Ability to change the background color of the selected date.
it has no method for disable scrolling
This library is super awesome and handy, loved it, really well done with your work!!
It would be better and more useful if you be kind and add those couple of features:
Cheers!
Hello! Great library! Used it in my project but there are some features that i'm missing so i had to implement them myself.
I used a calendar date-picker also to move quickly to specified date that is far away from today so in the same time with setting active date it would be great if focus moved to the date that is set to be active like this:
`public void setActiveDate(Calendar activeDate) {
try {
Date initialDate = new SimpleDateFormat("yyyy-MM-dd")
.parse(year + "-" + (month + 1) + "-" + this.date);
long diff = activeDate.getTime().getTime() - initialDate.getTime();
int position = (int) (diff / (1000 * 60 * 60 * 24));
adapter.setSelectedPosition(position);
int scrollPosition = position - 2;
if(scrollPosition < 0){
scrollPosition = 0;
}
linLayMan.scrollToPosition(scrollPosition);
invalidate();
} catch (ParseException e) {
e.printStackTrace();
}
}
`
linear layout manager should be initialized in init() func:
'linLayMan = new LinearLayoutManager(getContext(), LinearLayoutManager.HORIZONTAL,
false);
setLayoutManager(linLayMan);'
2) Also missing a function to change the color of picked date background - i just created xml that is used in night mode (that's the purpose of it) but it'd be easier using a func
Thanks! ๐
Hi. At first thank you for providing fantastic library.
I want to change the style of selected day. monthTextStyle, dateTextStyle and dayTextStyle are changing the unselected days styles.
Also, is there any way to hide month label?
thanks a lot.
Please add the ability to refresh the picker or to deselect any selected date.
Like the titles says, I want to add two buttons "Next month" and "Previous month". I tested to use the method setActiveDate(Calendar) but it doesn't let me change the current date. Do you guys know where can I manage to change it?
How to change font of text?
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.