代号一:VKB切换画面 [英] CodenameOne: VKB changes the screen

查看:109
本文介绍了代号一:VKB切换画面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个在CodenameOne平台上开发的应用程序,其中有用于手动输入的文本字段.每次在Android上显示VKB时,屏幕内容都会被压到底部,尤其是文本字段变得如此之细,以至于看不到任何字符.我该如何预防?

I have a an app developed on CodenameOne platform where I have textfields for manuel input. Each time when the VKB shows on android, the contents of the screen are pushed to bottom and especially the textfield becomes so thin that no characters can be seen. How can I prevent this?

推荐答案

在android上,当启动VKB时,Form收到sizeChanged事件,为防止此行为,您可以将文本字段父容器声明为可滚动的Y容器BoxLayout Y

On android when the VKB is launched the Form gets a sizeChanged event, to prevent this behavior you can declare the textfields parent container as a scrollable Y container BoxLayout Y

这篇关于代号一:VKB切换画面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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