Giter Club home page Giter Club logo

android-dateslider's People

Watchers

 avatar

android-dateslider's Issues

Support for using DateSlider as library

To reproduce the problem:
1. In eclipse, right click DateSlider project, select properties.
2. Choose Android and check Is Library.
3. Right click the project you want to use the lib in and select properties. 
Choose Android->Add... and select DateSlider

I would expect that the Android eclipse plugin would add the DateSlider source 
and R.java to the project i want to use it in (see attached picture). Instead I 
get many error messages which i think means that the R.java isn't generated. 
Errormsg: "...res\layout\timeslider.xml:13: error: No resource identifier found 
for attribute 'childWidth' in package 
'com.googlecode.android.widgets.DateSlider'"

It would be very nice to have this working. Dunno what causes this to happen. 
It works awesome with Cyril Mottier's GreenDroid. Check it out

Original issue reported on code.google.com by [email protected] on 19 Jul 2011 at 2:26

Attachments:

Sliders should use timezone from the Calendar used in the constructor

What steps will reproduce the problem?
1. Instantiate a slider using a Calendar with a different timezone from the 
default one.
2. When using the slider the date and time are shown with the default timezone 
instead of the one passed to the constructor.

What is the expected output? What do you see instead?
Expected is that the sliders use the timezone from the constructor.

What version of the product are you using? On what operating system?
1.1 on Froyo (2.2.2)

Please provide any additional information below.
I am using the sliders in an app which has to present all date/times in UTC. 
Fixed it by adding a copying of the timezone from mTime to all internally used 
Calendars.

Original issue reported on code.google.com by [email protected] on 26 Feb 2011 at 1:35

Provide API to scroll to target time

The only API to set the SliderContainer's time is setTime(Calendar). However, I 
would also have something like scrollToTime(Calendar), which not just sets the 
sliders to the new time, but scrolls them to that time. I think this is both 
intuitive and appealing to the user in many situations.

Original issue reported on code.google.com by [email protected] on 6 Nov 2011 at 1:38

Enhancement

Is it possible to have a long press to fire when we long press on any date in 
slider and to open a default date picker dialog with current date as selected 
in date slider. And when user selects a new date in date picker dialog and 
close, same date should be set in date slider ?

Original issue reported on code.google.com by [email protected] on 4 Apr 2013 at 6:02

DateSlider will crash using proguard

What steps will reproduce the problem?
1. Use DateSlider Demo
2. Export Demo with proguard enabled

What is the expected output? What do you see instead?
When the dialog should open, the app will crash

Using eclipse Indigo
Android SDK rev 12


Original issue reported on code.google.com by [email protected] on 20 Sep 2011 at 11:15

Center hour if 0 is centered in minute slider

Currently, the hour slider is centered if the minute slider has 30 as its 
center. I find this behavior confusing - is it possible to optionally configure 
the sliders such that the hour is centered when the minute slider has a 0 as 
its center?

One use case is that I want to use the DateSlider to let the user choose a 
duration. For this, I initially set 0:00 as the SliderContainer's time. It's 
very confusing to the user now that the 0 is not centered in the hour slider.

Original issue reported on code.google.com by [email protected] on 6 Nov 2011 at 1:35

time limits are not respected when sliding with month on datetime sliders

What steps will reproduce the problem?
1. Modify Demo to pass a minimum date to limit datetime slider
2. Slide month to the minimum date

I would expect that the time limit is respected also when sliding year like it 
does on sliding day or time.
Instead I get different timelimit with sliding on month.

Tested on Nexus S with Android 2.3.4 and using 1.2 Date slider version.

Thank you for your work.

Original issue reported on code.google.com by [email protected] on 11 Sep 2011 at 1:47

TimeSlider shows wrong minutes

Create a SliderContainer, set time such that hour and minute are 0. Set minute 
interval to 5 
=>
Problem 1: Displayed minute slider is not centered at 00, but 40 - 00 is not 
even visible.

Now push minute slider to the left (i.e., scroll into direction of the 00 to 
the right).
=>
Problem 2: The numbers following 40 are 45, 50, 55, _04_, 05, 10, ...

Scroll such that the 04 is out of sight, scroll back
=>
Good news: now a 05 is displayed.

I have also seen the 05 replaced with a 06.

Original issue reported on code.google.com by [email protected] on 6 Nov 2011 at 2:11

Minute intervals do not work in DateTimeSlider

What steps will reproduce the problem?
1. Extend the DateTimeSlider constructor to also take a minute interval as 
argument and pass it to the superclass DateSlider
2. In you client code when you create the DateTimeSlider pass a minute 
interval, e.g. I used '30' (I assumed this would mean '30 minutes')

What is the expected output? What do you see instead?
No matter what value I use it seems to be ignored,the interval is always 15 
minutes

What version of the product are you using? On what operating system?
v.1.2

Please provide any additional information below.
When I look at the TimeSlider in the Demo it seems to work. I think it has to 
do with the different 'Labelers' that are used in the DateTimeSlider (which 
uses a TimeLabeler) and the TimeSlider which uses a HourLabeler and 
MinuteLabeler. 

In the TimeLabeler the javadoc says "A Labeler that displays times in 
increments of {@value #MINUTEINTERVAL} minutes." (MINUTEINTERVAL = 15). Still, 
when I pass in a value of 2 for the minute interval in the DateTimeSlider it 
doesn't have any effect (I would assume an interval of 2 * 15 = 30 minutes). 

Also in the DateSlider.OnDateSetListener one has to do some rounding manually 
to get the proper time.

Is there any chance that this could be fixed? 

Original issue reported on code.google.com by [email protected] on 27 Nov 2011 at 2:23

Patches and bugfixes for master branch on github

I have been playing with the most recent version of the master branch on github 
(last commit Nov 9).
Fixed a few bugs and added a demo example for the new scrolling animation.
I have attached the output from 'git diff HEAD' for the master branch 
(DateSlider.diff).

Here is a summary of the my changes:

AndroidManifest.xml
        Bumped versionCode to 2 and versionName to 1.2
        Use different app names for full and minimal demo, so they do not
        appear with the same name in the applications grid.
        See also strings.xml.

README
        Bumped version to 1.2 in header.

customdateslider.xml
        Increased childWidth from 100dp to 105dp to avoid the 'week nn'
        label splitting over 2 lines on certain screens.

dialogtitle.xml
        Changed gravity from "center_vertical" to "center".
        Looks better on large screens (tablets).

main.xml
        Packed the LinearLayout into a ScrollView so all buttons and the
        bottom TextView can be reached on all screens (e.g. also in
        landscape).
        Added button for scroll animation demo.

strings.xml
        Separate strings for full and minmal demo app name.

DateSlider.java
        Added code to demo the slider animation introduced in the recent
        commits on master. Scrolls from one month before to the specified
        date in 2.5 seconds.
        Corrected result text for Month/Year case.
        Corrected code for 'Select Time with Limit'.
        Removed dot after day number (needed in German, not in English).

MinimalDemo.java
        Removed dot after day number (needed in German, not in English).

SlicerContainer.java
        Added code to limit the width of the slider on wide screens.
        Do not know if this is the correct way to use onMeasure, but it
        works nicely on tablets and in landscape mode.

DayTimeLayoutView.java
        Made the sunday color more reddish. Had difficulty to distinguish
        sundays from weekdays.

Original issue reported on code.google.com by [email protected] on 15 Nov 2011 at 5:45

Attachments:

And Max and Minimum Date feature

Is it possible to add date range?

I want user can  scroll a date within a date range 

please give some hint in case of you are not interested to update the code.

Thank You

Original issue reported on code.google.com by [email protected] on 24 Jul 2014 at 2:37

Alternative Date cannot return previous year

What steps will reproduce the problem?
1.Open Alternative Date
2.Scroll year up to about 2100
3.Scroll down to 2011 again

What is the expected output? What do you see instead?
I want to scroll back to 2011, but it stops at 2067 and loops forever if I try 
to scroll back more.

What version of the product are you using? On what operating system?
I use DateSlider_1.2_full on android version 2.3.6.

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 29 Nov 2011 at 7:26

Attachments:

Can't Go below 1945 Oct.. in Select Month/Year

What steps will reproduce the problem?
1. Open Month/Year
2. Go to Year 1945
3. Try to go to a date before that

What is the expected output? What do you see instead?
It should go to previous dates. It does not.

What version of the product are you using? On what operating system?
Froyo HTC Desire. also on the emulator...



Original issue reported on code.google.com by [email protected] on 16 Jun 2012 at 6:59

Touch issues on HTC incredible S

What steps will reproduce the problem?
1. Scrolling fastly within all the screen
2. You will see that it is lagging or even stops

What is the expected output? What do you see instead?
The onCancel action from the onTouch method is called even if we are still 
scrolling.

What version of the product are you using? On what operating system?
1.2

Please provide any additional information below.
I integrated the dateslider into a linearLayout and not a Dialog but I can 
reproduce this issue in a Dialog as well

Original issue reported on code.google.com by [email protected] on 12 Aug 2011 at 3:59

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.