English 中文(简体)
当 Blackberry 的虚拟键盘弹出时, 如何将文本框滚动到合适的位置
原标题:How to scroll the textbox to appropriate position when virtual keyboard pops-up in Blackberry

我用J2ME、Lwuit和Blackberry Api来开发我的应用程序。

My form contains textbox as well as toolbar. While touching the textbox, the virtual keyboard appears and then disappears. This is happening due to the toolbar. Even if I remove the toolbar, the textbox remains beneath the virtual keyboard instead of scrolling up. Issue is happening for the touch phones, for which we have to use touch screen.

我希望文本框能滚动到合适的级别, 方便用户使用 。

有人遇到同样的问题吗?

最佳回答

在 LWUIT 中有此特性中的错误。 它可能在 < a href=> http:// www.codenameone.com/" rel= "nofollow" > Codename One 中被固定, 但我不确定 。

问题回答

您知道黑莓触摸开发需要不同的 UI lib 吗? 如果您不导入这个特定的 lib, 您可以找到外国问题 。 您必须导入名为 UI_ RIM_ Touch. jar 的 lib 。 如果您与资源编辑器一起生成此工程, 您可以在您的工程的根部找到这个文件 。 请尝试 。





相关问题
add text in http request string url

ok i made a midlet through which i can connect to server pages and get soem information as response. For example i made a midlet through which i acced url: http://example.com/?u=nepal&t=1 Now i ...

Do I have to do a setSize() on a Vector before using it?

Given private final Vector v = new Vector(); //instance variable the following 3 lines are in an instance method in the same class. 1. int length = v.capacity(); 2. int size = v.size(); ...

Is the situation with Java ME improving?

It seems to be the consensus that developing for Java ME is not as cross platform as you might expect, particularly compared to say java SE, but it is difficult to assess how the situation is evolving....

Privileged operations in netbeans mobility

I m writing a Java ME app that will use privileged operations such as messaging. By default the user is prompted to confirm each of these operations, but I would like to run it as a background ...

ClassFormatError: 56 while using hessian in j2me

I am trying to use the hessian j2me implementation @ http://hessian.caucho.com/ using java me sdk 3.0. http://hessian.caucho.com/doc/hessian-overview.xtp#Hessian%20Client%20for%20a%20cell-phone ...

热门标签