简体   繁体   English

代号一:VKB切换画面

[英]CodenameOne: VKB changes the screen

I have a an app developed on CodenameOne platform where I have textfields for manuel input. 我有一个在CodenameOne平台上开发的应用程序,其中有用于手动输入的文本字段。 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. 每次在Android上显示VKB时,屏幕内容都会被压到底部,尤其是文本字段变得如此之细以至于看不到任何字符。 How can I prevent this? 我该如何预防?

在Android上,当启动VKB时,Form收到sizeChanged事件,为防止出现这种情况,您可以将文本字段的父容器声明为可滚动的Y容器BoxLayout Y

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM