Autocomplete and datepicker on same screen

15 views
Skip to first unread message

Gareth Murfin

unread,
Feb 15, 2018, 11:07:18 PM2/15/18
to CodenameOne Discussions
I have an autocomplete and a date picker on the same form, for some reason the first time I tap the datepicker nothing happens, but the autocomplete textfield gets a call to "ontextchanged". Second tap does what is expected which is launch the date picker, is there a way to make this happen on first click?

Gareth Murfin

unread,
Feb 15, 2018, 11:19:56 PM2/15/18
to CodenameOne Discussions
Also forgot to ask is there a native time AND date picker? the one in the api docs seems to be cn1 made, and also has layout issues. I guess I just use a date picker, then a timer picker. Is there a way to trigger these things without tapping? so I can have the timer picker automatically appear after the date picker for example. 

Shai Almog

unread,
Feb 16, 2018, 12:19:33 AM2/16/18
to CodenameOne Discussions
You can use the low level picker API in Display. Only iOS has native Date & Time picker. Android doesn't have such a widget.
Reply all
Reply to author
Forward
0 new messages