DateDialog question

padvou

Active Member
Licensed User
Longtime User
Why does the datedialog gets shown like that?
I 'd like it simple with just day, month, year
 

Attachments

  • New Bitmap Image.jpg
    18.4 KB · Views: 574

DouglasNYoung

Active Member
Licensed User
Longtime User
Using datepicker from Andrew Graham's Dialogs Library (v2.30) gives me the attached format on Android 4, which is what you are looking for.

B4X:
rv=datepicker.show("Please select the desired date!", "Departure Date","OK","Cancel","",Null)

Douglas

 
Upvote 0

padvou

Active Member
Licensed User
Longtime User
The attached pic is from android 4.03 using Dialogs Andrew Graham's Dialogs Library v2.8
The DialogsDemo example I downloaded shows the simple day-month-year pop up dialog when I run it on either the emulator or my device which are both 4,03 How is that possible?
 

Attachments

  • dd.png
    38.8 KB · Views: 538
Upvote 0

padvou

Active Member
Licensed User
Longtime User
If i omit android:targetSdkVersion="14"
the interface changes. What version does the app use?
 
Upvote 0

padvou

Active Member
Licensed User
Longtime User
That was the answer I was looking for.
And one more: If I keep this line android:targetSdkVersion="14"
will the app run on older android versions?
Also if i keep this line, is there a way to use the "old" style just for the datedialog?
Thank you
 
Upvote 0

padvou

Active Member
Licensed User
Longtime User
No (on older devices the old style will be used).

You mean on newer devices the new style will be used?
4.03 devices use a simple datedialog like the old style, when you choose to enter date manually and not get it from the network. Could there be a way for this?
Thank you.
 
Upvote 0

aalekizoglou

Member
Licensed User
Longtime User
I've got the same problem for the datedialog, on newer devices the dialog has the calendar shown. Problem is that on 3.5" or 4" devices the calendar does not fit the screen and the view is unusable.

Searching Android Developers I saw the implementation on API 17 has a calendarViewShown property to show/hide the calendar.

DatePicker | Android Developers

Is this something you can incorporate in an updated version of the Dialogs library?
 
Upvote 0

rscott

New Member
Licensed User
Longtime User
Just wondering if this is something which may be implemented? The current date selector doesn't display properly on a Galaxy S3 .
 
Upvote 0

devlei

Active Member
Licensed User
Longtime User
I have been through this thread carefully because I am having the same problem that I can't get a simple Date Picker to show in the 'Old Style', but rather get the 'New Style' that does not fit into the box it is in. I have tried everything with the Manifest Editor, changing that line, omitting it etc. Even when I use Andrew Graham's Dialogs example I still get the new style. I mostly use the AnotherDatePicker Class, but have one instance where I need to use the old style.

Could it be have something to do with the fact that I upgraded to API17 in order to install UltimateListView?

Searching Android Developers I saw the implementation on API 17 has a calendarViewShown property to show/hide the calendar.
Does anyone know how to do Hide the Calendar according to the above?
 
Upvote 0

devlei

Active Member
Licensed User
Longtime User
Yes, I tried it at "4", I tried removing it, but still get the new DateDialog with Calendar on right.
Are there any examples on how to hide that Calendar as mentioned above, cause if it is out the way it probably wont be much different from the old simple one.
 
Upvote 0

devlei

Active Member
Licensed User
Longtime User
Thanks, Erel, silly oversight on my part - it was there all the time. Set it to False and it displays just like the old style.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…