padvou Active Member Licensed User Longtime User Nov 4, 2012 #1 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: 865
Erel B4X founder Staff member Licensed User Longtime User Nov 4, 2012 #2 This is how the native DateDialog looks on Android 3+ devices. Upvote 0
D DouglasNYoung Active Member Licensed User Longtime User Nov 4, 2012 #3 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. Code: rv=datepicker.show("Please select the desired date!", "Departure Date","OK","Cancel","",Null) Douglas Upvote 0
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. Code: rv=datepicker.show("Please select the desired date!", "Departure Date","OK","Cancel","",Null) Douglas
padvou Active Member Licensed User Longtime User Nov 4, 2012 #4 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: 936 Upvote 0
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?
Erel B4X founder Staff member Licensed User Longtime User Nov 4, 2012 #5 It is because the manifest editor doesn't include android:targetSdkVersion="14". So the app uses the old style. Upvote 0
It is because the manifest editor doesn't include android:targetSdkVersion="14". So the app uses the old style.
padvou Active Member Licensed User Longtime User Nov 4, 2012 #6 If i omit android:targetSdkVersion="14" the interface changes. What version does the app use? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Nov 4, 2012 #7 What version does the app use? Click to expand... Not sure what you mean. You can omit this line. Your application will still run properly on all devices. It will just use the Android 2.x style. Upvote 0
What version does the app use? Click to expand... Not sure what you mean. You can omit this line. Your application will still run properly on all devices. It will just use the Android 2.x style.
padvou Active Member Licensed User Longtime User Nov 4, 2012 #8 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
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
Erel B4X founder Staff member Licensed User Longtime User Nov 4, 2012 #9 will the app run on older android versions? Click to expand... Yes. Also if i keep this line, is there a way to use the "old" style just for the datedialog? Click to expand... No (on older devices the old style will be used). Upvote 0
will the app run on older android versions? Click to expand... Yes. Also if i keep this line, is there a way to use the "old" style just for the datedialog? Click to expand... No (on older devices the old style will be used).
padvou Active Member Licensed User Longtime User Nov 4, 2012 #10 Erel said: No (on older devices the old style will be used). Click to expand... 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
Erel said: No (on older devices the old style will be used). Click to expand... 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.
Erel B4X founder Staff member Licensed User Longtime User Nov 4, 2012 #11 New devices will show the new style and old devices will show the old style. The DateDialog will look exactly the same whether the date comes from the network or from any other source. Upvote 0
New devices will show the new style and old devices will show the old style. The DateDialog will look exactly the same whether the date comes from the network or from any other source.
aalekizoglou Member Licensed User Longtime User Mar 15, 2013 #13 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
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?
R rscott New Member Licensed User Longtime User Apr 4, 2013 #14 Just wondering if this is something which may be implemented? The current date selector doesn't display properly on a Galaxy S3 . Upvote 0
Just wondering if this is something which may be implemented? The current date selector doesn't display properly on a Galaxy S3 .
Erel B4X founder Staff member Licensed User Longtime User Apr 5, 2013 #15 It was added to the latest version of Dialogs library: Dialogs library Note that there is another option to show a custom date picker: [Class] AnotherDatePicker - A simple "web style" date picker Upvote 0
It was added to the latest version of Dialogs library: Dialogs library Note that there is another option to show a custom date picker: [Class] AnotherDatePicker - A simple "web style" date picker
D devlei Active Member Licensed User Longtime User Jul 20, 2013 #16 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. Click to expand... Does anyone know how to do Hide the Calendar according to the above? Upvote 0
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. Click to expand... Does anyone know how to do Hide the Calendar according to the above?
Erel B4X founder Staff member Licensed User Longtime User Jul 21, 2013 #17 Could it be have something to do with the fact that I upgraded to API17 in order to install UltimateListView? Click to expand... No. The referenced android.jar doesn't matter. I guess that you tried to set android:targetSdkVersion="4" in the manifest editor? Upvote 0
Could it be have something to do with the fact that I upgraded to API17 in order to install UltimateListView? Click to expand... No. The referenced android.jar doesn't matter. I guess that you tried to set android:targetSdkVersion="4" in the manifest editor?
D devlei Active Member Licensed User Longtime User Jul 21, 2013 #18 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
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.
Erel B4X founder Staff member Licensed User Longtime User Jul 22, 2013 #19 There should be a ShowCalendar property. Try to set it to False. Upvote 0
D devlei Active Member Licensed User Longtime User Jul 22, 2013 #20 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
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.