Reputation: 3027
When the "PICKER_TYPE_DATE_AND_TIME" type is used, the picker doesn't give native picker look. Moreover date and time overlaps each other. But if I use "PICKER_TYPE_DATE", then it works. Why is that?
Picker notiDateAndTime = new Picker();
notiDateAndTime.setType(Display.PICKER_TYPE_DATE_AND_TIME);
notiDateAndTime.setText("Choose date and time");
Upvotes: 1
Views: 35
Reputation: 52770
I suggest using:
if(Display.getInstance().isNativePickerTypeSupported(Display.PICKER_TYPE_DATE_AND_TIME)) {
// then decide whether to show that widget
}
This will return false always except for iOS which is the only platform where such a widget exists natively.
You should probably file an issue on the fallback rendering issue but notice that it never looked good even when it was working properly.
Upvotes: 1