codenameone / CodenameOne

Cross-platform framework for building truly native mobile apps with Java or Kotlin. Write Once Run Anywhere support for iOS, Android, Desktop & Web.
https://www.codenameone.com/
Other
1.71k stars 408 forks source link

PICKER_TYPE_DATE_AND_TIME is broken #2307

Open eprst opened 6 years ago

eprst commented 6 years ago

It looks like date&time picker is broken, date and time spinners get overlayed on top of each other when picker is invoked.

Steps in Intellij: create new project, template = hello world (bare bones) edit MyApplication.start, insert this before hi.show():

        Picker p = new Picker();
        p.setType(PICKER_TYPE_DATE_AND_TIME);
        hi.add(p);

run app, click on picker. It looks messed up when invoked both in the emulator and on a real android device.

cn1
codenameone commented 6 years ago

I would suggest avoiding that specific variant and using separate date/time options unless

if(Display.getInstance().isNativePickerTypeSupported(Display.PICKER_TYPE_DATE_AND_TIME)) {
   ...
}

This will only return true on iOS...