UI resizing when the virtual keyboard is opened on Codename One apps - codenameone

This question is referred only to Codename One apps.
Why do keyboards resize the UI on Android native apps and Javascript apps (only when run on Android) and don't have that effect on iOS native apps?
Can this default behavior be changed in our Codename One apps?

It's the native behavior of Android as you can see from the behavior in the browser. There isn't much we can do about it.
The solution is to make the UI scrollable which means everything will be resizable and behave more consistently in iOS/Android.

Related

Codename One landscape oriented Form in a portrait locked app

I have a Codename One app which orientation is locked to portrait. That app is build to Android and iOS. It's a social and the portrait orientation is fine, except for video and images when they are landscape oriented.
To see a full screen image in a landscape orientation, I workarounded the problem rotating the image before showing it. However I suppose that the same workaround is not applicable to play a video.
How can I programmatically change the orientation of a Form to landscape when the app is locked to portrait? Otherwise, how can I satisfy the use case that I described? Thank you
This only works on Android and doesn't work for our iOS port. Notice that if you use the setNativePlayerMode it will work for iOS as well but you won't have any control as described here: https://stackoverflow.com/a/59495797/756809
You can set orientation to landscape explicitly using CN.lockOrientation(false). You can release the lock using CN.unlockOrientation().
But this will only work on Android and won't really impact iOS.

Is there a way to pre render Mobile separately from Desktop?

I am currently using react-responsive on my website so I can render a different markup on mobile vs desktop. My problem is pre render is only rendering the desktop version and Google mobile usability tool detects our site as not mobile friendly. Thank you!

How to remove Splash screen for both iOS and Android in Xamarin.Forms?

I'm new to Xamarin.Forms and was looking for a way to remove the Splash Screen and have my custom animated splash screen, does anyone have the idea about how to do it? Any help at all would be great!
Thanks
There is a blog post here that details how remove the default splash screen and replace this on iOS, Android, and WindowsPhone.
For example on the Android example, they are talking about creating a new Activity, prior to loading the default Activity that will launch the Xamarin.Forms App.
Using that approach will most likely also work in all other platforms. As you can do some platform-specific native animation set, prior to launching your real Xamarin.Forms App in your PCL.

Codename one style does not display on android tablet

I just developed a multiplatform mobile app with Codename One. I styled it using the codename one visual tool. I tested the app on multiple ios and Android devices and everything is fine except on asus android tablet. With these one. The screen displays like no style is loaded. The screens remains mainly dark... any idea ?
Look within your override directory, if you have a file there just delete it.

Blackberry XPages Theme

I have an application using XPages Mobile Controls for iOS.
My customer has Blackberry devices (9900/9800/9320) in his environment and I don't know if IBM provides a custom BBerry theme. These devices have a very small screen and the app navigation is too bad.
The Android/BBerry default theme seems the same of iOS using black/gray colors.
Have anyone ran into this situation in a project?

Resources