我正在尝试显示自定义 PopupScreen,当显示虚拟键盘时,它会减小弹出窗口的大小。例如,我知道当您选择新消息时,您会得到一个 PopupScreen,它允许您选择消息类型(短信、电子邮件等),它会显示在虚拟键盘的顶部。这是我的代码我错过了什么吗?我找不到 z-index 或类似的东西......
public class InsertApplicationMenuItem extends ApplicationMenuItem {
public Object run(Object context) {
InsertWhatScreen screen = new InsertWhatScreen();
UiApplication.getUiApplication().pushModalScreen(screen);
return context;
}
}
public class InsertWhatScreen extends PopupScreen {
public InsertWhatScreen() {
super(new VerticalFieldManager(), FOCUSABLE);
}
}
替代文字 http://dl.dropbox.com/u/2645315/2010-01-20%2015%2017%2023.png
谢谢您的帮助。