Datepicker Dialog V1.0.0

DonManfred

Expert
Licensed User
Longtime User
ATTENTION:
This is a library to show a Datepicker or an Timeticker.
Sadly the Timepicker still DOES NOT WORK!
I dont´t know how to fix this problem! :mad:

As i now worked more than 80 hours on this library and the fact that the datepicker is working and looking really nice... I deciced to publish this library only as a DATEPICKER library.
I attach the javasource (Eclipse) too in the hope someone other here in b4a forum maybe get it to work and finish this library :rolleyes:

Anyone who is interested in trying the Timepicker to work too can download the Java-Source of this library here.

Here we go

This library is a wrapper for this Github project.

DateTimePicker
Version:
1.0.1
  • DateTimePicker
    Events:
    • ondateset (year As Int, month As Int, day As Int)
    • ontimeset (HourOfDay As Int, minute As Int)
    Methods:
    • DatePicker (tag As String, year As Int, month As Int, day As Int)
    • Initialize (EventName As String)
    • TimePicker (tag As String)


This library is Donationware. You can download the library, you can test the library. But if you want to USE the library in your App you need to Donate for it.
Please click here to donate (You can donate any amount you want to donate for the library (or my work) :)


datepickerdialog001.png
datepickerdialog0002.png
 

Attachments

  • libDatetimePickerV1.0.0.zip
    89 KB · Views: 1,022
  • DateTimePickerEx.zip
    26.9 KB · Views: 1,254
  • libDatetimePickerV1.0.1.zip
    79.9 KB · Views: 1,283
Last edited:

barx

Well-Known Member
Licensed User
Longtime User
Whats the issue with the TimePicker?
 

DonManfred

Expert
Licensed User
Longtime User
Whats the issue with the TimePicker?
I get the Call not working. The fragments does not seems to be compatible. I really dont know what really the problem is and how to change. And at least WHAT needs to change :)
Try to call the time method and you´ll see the exception
 

DonManfred

Expert
Licensed User
Longtime User
Super would be an indication of the calendar weeks.
100% of the Github project is wrapped. The git is based on Googles code which does not expose the weeknumber.
Due to this there is no such indication too.

I published the Sourcecode of the wrapper. Feel free to contribute and reupload it then :)
 

shashkiranr

Active Member
Licensed User
Longtime User
Hi DonManfred,

I just noticed a small bug. I do not know whether it happening to others. If i select any day, the month will be selected as previous month. For instance if i select may 28 2105, the result month is coming as 4 instead of 5 . Its happening in the example project also. I am just adding 1 to the month now as a workaround.

Regards,
SK
 

DonManfred

Expert
Licensed User
Longtime User
How to change the text of "Done" button ?
Resources\values\string.xml

resources xmlns:xliff="urn:eek:asis:names:tc:xliff:document:1.2">

<!-- Label for button to confirm chosen date or time [CHAR LIMIT=30] -->
<string name="done_label">Done</string>
 

gdeppi

Member
Licensed User
Longtime User
Hi DonManfred,

Is there a way to preset the date, before displaying the dialog ?

Me too have the bug with month index (-1)

Regards.
 

DonManfred

Expert
Licensed User
Longtime User
Is there a way to preset the date, before displaying the dialog ?
see updated post #1 (v1.0.1 and example updated too)

Me too have the bug with month index (-1)
Aehm... I missed that i think. What problem you encounter?
If i select any day, the month will be selected as previous month. For instance if i select may 28 2105, the result month is coming as 4 instead of 5 . Its happening in the example project also. I am just adding 1 to the month now as a workaround.
See updated post #1
Should be fixed now
 

Derek Jee

Active Member
Licensed User
Longtime User
Hi Manfred

What a lovely looking date picker.. Is it at all customisable to change font colours and size text? .. and it is a non modal 'form'?

Kind regards,


Derek.
 
Last edited:

rleiman

Well-Known Member
Licensed User
Longtime User
Hi Everyone,

Please ignore this post.

I got the error fixed. I needed to install the file with this advise from corwin42.

Attention: This library uses the android-support-v4.jar library. You have to install it with the Android SDK Manager. Please add the Extras/Android Support package. Then you will find the jar under <SDK root folder>\extras\android\support\v4. Please copy the android-support-v4.jar file to your custom libs folder!

Truly,
Emad
 
Last edited:

rleiman

Well-Known Member
Licensed User
Longtime User
ATTENTION:
This is a library to show a Datepicker or an Timeticker.
Sadly the Timepicker still DOES NOT WORK!
I dont´t know how to fix this problem! :mad:

As i now worked more than 80 hours on this library and the fact that the datepicker is working and looking really nice... I deciced to publish this library only as a DATEPICKER library.
I attach the javasource (Eclipse) too in the hope someone other here in b4a forum maybe get it to work and finish this library :rolleyes:

Anyone who is interested in trying the Timepicker to work too can download the Java-Source of this library here.

Here we go

This library is a wrapper for this Github project.

DateTimePicker
Version:
1.0.1
  • DateTimePicker
    Events:
    • ondateset (year As Int, month As Int, day As Int)
    • ontimeset (HourOfDay As Int, minute As Int)
    Methods:
    • DatePicker (tag As String, year As Int, month As Int, day As Int)
    • Initialize (EventName As String)
    • TimePicker (tag As String)


This library is Donationware. You can download the library, you can test the library. But if you want to USE the library in your App you need to Donate for it.
Please click here to donate (You can donate any amount you want to donate for the library (or my work) :)


datepickerdialog001.png
datepickerdialog0002.png


Nice KitKat Date picker.

Any idea when someone will have the KitKat time picker part working?
 
Top