Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 91
Registered: ‎06-21-2011
My Device: Blackberry Torch 9800
My Carrier: developer
Accepted Solution

Virtual keyboard

Hi guys,

I have the following situation :

when user click to screen virtual keyboard appears and entire screen moves up to make textfields visible :

9800.png

 

the second step is when pressing plus button screen transition happens and new screen appears,but unfortunatelly the last keyboard white screen still appears :

9800-01.png

Any help?

Regards,
Arsen
Highlighted
Developer
Posts: 91
Registered: ‎06-21-2011
My Device: Blackberry Torch 9800
My Carrier: developer

Re: Virtual keyboard

OK,I found it :

you must just hide virtual keyboard before start transition and push new screen:

super.onUnfocus();
VirtualKeyboard vk = UiApplication.getUiApplication().getActiveScreen().getVirtualKeyboard();
vk.setVisibility(VirtualKeyboard.HIDE);
           
TransitionContext transition = new TransitionContext(
                    TransitionContext.TRANSITION_SLIDE);
//...

UiApplication.getUiApplication().pushScreen(_secondaryScreen)

Regards,
Arsen