黑莓问题显示VirtualKeyboard并获得一个空白屏幕

时间:2011-07-03 04:10:36

标签: blackberry virtual-keyboard

我有一个问题,当我显示VirtualKeyboard然后在我的屏幕上显示MainScreen上方的空白区域。 有些想法可以避免这个空白吗?

黑莓操作系统可能与这个家伙一样奇怪的态度...... Weird behavior in Blackberry when toggling virtual keyboard between two textboxes

enter image description here

1 个答案:

答案 0 :(得分:1)

private VerticalFieldManager manBackground;
private NewsList newsList;

问题已解决,使用 onExposed()方法......

protected void onExposed() {
   if (comesfromArticle){ //comes from an article (probably the Virtual Keyboard was showed)...
    manBackground.delete(manBackground.getField(0)); / Delete the manager that contains the list of news (newsList).
    manBackground.add(newsList);//Add again the newslist, so the blank space disappear...
    comesfromArticle =false;
    }
    super.onExposed();
}