Klaus Heywinkel
Klaus Heywinkel

Reputation: 509

Codenameone: DateTime-Pickcer on Android looks ugly/corrupt

I use DateTime Picker within my Codenameone App. On my Android-Device it looks unreadable - see attached Screenshot. Is there any way to fix this corrupt layout?

enter image description here

Upvotes: 0

Views: 82

Answers (1)

Shai Almog
Shai Almog

Reputation: 52770

Date-time is a type that isn't supported on Android. We recommend using separate pickers for date and time to achieve a better UX example. You can detect this using this code (assuming static import of CN):

if(isNativePickerTypeSupported(PICKER_TYPE_DATE_AND_TIME)) {
    // ...
} 

Upvotes: 0

Related Questions