views:

249

answers:

1

I am trying to display a Custom PopupScreen and when the virtual keyboard is being displayed it reduces the size of the popup. I know when you for example, select new message you get a PopupScreen that allows you to select message type (sms, email, etc) and it shows on top of the virtual keyboard. Here is my code am I missing something? I can't find a z-index or something similar...

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);
    }
}

alt text

Thanks for the help.

+1  A: 

There's no way to put anything on top of the virtual keyboard from a third-party app. If you read the display height while the virtual keyboard is showing, you'll see that the device actually shrinks the "screen size" given to your app while the keyboard is showing.

Marc Novakowski
Thanks, I think I am going to have to try to hide virtual keyboard then...
J.13.L
Your users won't thank you for that... if they virtual keyboard is up, they likely have it up for a reason.
Marc Paradise