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?
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)) {
// ...
}
Related
I want to display the time zone in the calendar edge, it will be like that:
GMT+x, do you have any idea if that's possible?
thank you
First, you would want the latest (0.36.0) version of RBC, which includes timezone support when using the momentLocalizer of the new luxonLocalizer. Second, you cannot currently override the internal TimeGutter component. You would have to replicate all of the views that use TimeGrid and copy over code to write that in yourself.
I use i18n (react-i18next) in my react js application. Translation with language chooser etc works absolutly fine.
But now I want to change some texts programmatically on demand.
I tried this:
i18n.t('clinical:sde.export.studyTitle', {lng: "en"})
and
i18n.t('clinical:sde.export.studyTitle', {"en"})
It always returns the german string from current setting and not the "on demand" english text. Is there a solution to solve this?
Thanks in advance.
Your code should work, you need to check that the dynamic language is loaded (this what i18n.changeLanguage does).
I've made a simple test, and it works.
https://codesandbox.io/s/react-i18next-example-forked-ueng1?file=/src/app.js
I created a DateSpinner in my Desktop app,but the spinner is not displaying the month,day or year properly.half of the part was not visible to the user.
Can you please help to resolve the issue?
![DateSpinner Image][![Below link shows how the date spinner visible to the user]1]1
The DateSpinner class has been deprecated for a while. I suggest using the Picker component which is better looking overall. See: https://www.codenameone.com/javadoc/com/codename1/ui/package-summary.html
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");
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.
Is it possible to add input type as date in angular formly.? I was trying it using type:date but it is not defined in it. So, how to get it?
I recommend you take a look at the resources at http://learn.angular-formly.com/
Specifically, what you're looking for is creating Custom Templates (video, example). There's even an example that uses UI Datepicker.