ashub7 / android-dateslider

Automatically exported from code.google.com/p/android-dateslider
0 stars 0 forks source link

Patches and bugfixes for master branch on github #10

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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 tvoverb...@gmail.com on 15 Nov 2011 at 5:45

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks a lot for your work. I am definitely going to incorporate these changes 
very soon!

Original comment by daniel.b...@gmail.com on 15 Nov 2011 at 9:13

GoogleCodeExporter commented 8 years ago
Any progress on this?

Original comment by beth...@gmail.com on 30 May 2012 at 8:57