GithubHelp home page GithubHelp logo

101loop / datepickertimeline Goto Github PK

View Code? Open in Web Editor NEW
124.0 124.0 36.0 173 KB

Android Date Picker Library that provides a calendar as a horizontal timeline

License: Apache License 2.0

Java 100.00%
android android-library datepicker java

datepickertimeline's People

Contributors

iamvivekkaushik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

datepickertimeline's Issues

Manifest merger failed

Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0]

[Suggestion] Month, Year and more

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:

  • Year selection: possibility to select a year from a list (could be horizontal list of years, could be a dropdown...)
  • Month selection: possibility to select a year from a list (could be horizontal list of years, could be a dropdown...)
  • Current day selection: jump to current day (dd, mm, yyyy -or any other format!!)

Cheers!

Move to specified date (code included)

Hello! Great library! Used it in my project but there are some features that i'm missing so i had to implement them myself.

  1. 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! ๐Ÿ‘

Previous dates before initial date

  • After setInitialDate() method, users should have the ability to go before the initial date.
  • Also please implement a setSelectedDate() method.

Change style of selected day

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.