在Codename One应用程序上打开虚拟键盘时调整UI的大小 [英] UI resizing when the virtual keyboard is opened on Codename One apps

查看:50
本文介绍了在Codename One应用程序上打开虚拟键盘时调整UI的大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此问题仅涉及Codename One应用.

This question is referred only to Codename One apps.

为什么键盘会在Android本机应用程序和Javascript应用程序上调整UI的大小(仅当在Android上运行时),而对iOS本机应用程序却没有影响?

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?

可以在我们的Codename One应用中更改此默认行为吗?

Can this default behavior be changed in our Codename One apps?

推荐答案

这是Android的本机行为,您可以从浏览器的行为中看到它.我们对此无能为力.

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.

解决方案是使用户界面可滚动,这意味着所有内容都将可调整大小并在iOS/Android中表现得更加一致.

The solution is to make the UI scrollable which means everything will be resizable and behave more consistently in iOS/Android.

这篇关于在Codename One应用程序上打开虚拟键盘时调整UI的大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆