Giter Club home page Giter Club logo

dateslider's People

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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dateslider's Issues

Support Seconds as Labeler

Any plans to support even the seconds as Labeler? Would be useful when you want to set an alarm with precision.

Scroll Backwards

How do you enable backwards scrolling through time? From the code available, I can only scroll forwards.

Selected Text and Background Colors

I'm still trying to figure out how this project works. I need to change the text colors within the ScrollLayout. Currently, the unselected text is a grey and the selected color is black.

Where are these color values stored? How can they be change?
image

Select with "onClick" event too

Some users try to select dates clicking in the date (instead scroll to it).

Is there any way to select (scroll to) the child view clicked by the user?

Thanks in advance

TimeLabeler's MINUTEINTERVAL should be configurable

We should figure out a way to make the MINUTEINTERVAL configurable for code, or better yet, from XML. However, since in XML labelers are only specified by their class names, this might have to be a generic property that could be set for any type of labeler.

Force Close App After Proguard

It's ok when debug mode and export apk file without proguard. But after proguard, my app fore close when touch DateSlider. (I'm copy source code to my package)

on march 2011 (and before) months are duplicated

use Default Date slider.
slide month backward.
soon you will notice, that months are repeating (I've got a lot of Mar'2011, but I managed to get to oct'2010 - days began to repeat there too)

os version: CM7

Changing the Width of TimeLayoutView

Looking to increase the size of the TimeLayoutView to give more space between the days. I tried adding the following lines of code, but they aren't working:

//This did nothing
topView.setMinWidth(200);

//This made the text disappear
topView.setLayoutParams(new LayoutParams(200,LayoutParams.WRAP_CONTENT,1.0f));
image

Give ScrollLayouts a "snap to" configuration parameter

This only makes sense if we implement #3. It we do implement #3 and have configurable intervals, then it would also be very useful to have a configuration parameter that instructs the scrollview to "snap to" the interval. In other words, rather than the observer (e.g. the hosting Dialog) knowing what the interval is and rounding down to the nearest interval as some do now, this would be encapsulated at a lower level.

This would probably involve the SliderContainer hiding this information -- all of the ScrollLayouts behave exactly as they do now, but the SliderContainer only notifies its observer when the time crosses an interval boundary, and then it sends the time of that boundary.

We might be able to get fancier and restrict the movement of the scrollers so they stick to their value until scrolled far enough, and then do a quick "bounce" to the next value.

OnDateSetListener does not pass Calendar corrected for minute interval

When implementing an OnDateSetListener for a DateSlider, the Calendar object that is passed to the listener's onDateSet method is not adjusted to the configured MINUTEINTERVAL. Instead, the normal date is returned, so you end up getting dates in between the interval, such as 5:10 when the MINUTEINTERVAL is set to 15.

Expected behavior is the Calendar returned matches the date chosen by the user, without having to do a

selectedDate.set(Calendar.MINUTE, selectedDate.get(Calendar.MINUTE)/TimeLabeler.MINUTEINTERVAL*TimeLabeler.MINUTEINTERVAL);

to correct it.

DateSlider should accept a range of allowed times

The application should be able to optionally specify a start and/or end time that defines a (possibly half-open) range of allowable times. If the user tries to scroll back past the range start or forward past the range end, the scroller should just not scroll. This would be very useful for cases where the application needs the user to choose a time in the future, or in the past, and probably for other cases as well.

Provide public setMinTime() and setMaxTime() methods

After instantiation, it's no longer possible to set the min/max times (for example, when using 2 DateSliders as a range picker). The DateSlider class provides a setTime() method, it should also provide setMinTime() and setMaxTime() to allow changing those values on the fly. I've added those methods to my own code and they seem to work fine:

public void setMinTime(Calendar c) {
    minTime = c;

    if(c != null){
        mContainer.setMinTime(c);
    }
}

public void setMaxTime(Calendar c) {
    maxTime = c;

    if(c != null){
       mContainer.setMaxTime(c);
    }
}

Make auto scrolling configurable

In our project (a reservation system) we are using the DateTimeSlider component, while generally there is a positive feedback (much much better than the default way) several users are complaining that the auto scrolling of the bars is not very intuitive and confusing. E.g. If I only want to change the day of my reservation but not the time it is hard to achieve and can lead to errors. So in our use case it would be more suitable to make them act separately / independently (like in iOS).

It would be great if there could be an option to configure this behavior as the user desires.

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.