12-09-2009 06:10 PM
I am using a virtual keyboard for input. After it is dismissed with the enter key and the screen which
invoked it is popped...
I do this:
for the now top, formerly underlying, screen.
It shows a white background under the top screen exactly where the virtual keyboard was.
I have also tried using
and this does not get rid of the white background.
This happens after I push a screen that brings up the virtual keyboard.
If I don't go to that screen, which pushes the virtual keyboard, I never
have this white background.
Any ideas how to fix this?
12-10-2009 07:48 PM
I think I see the problem and I wonder if it is a bug.
This is api 4.7 and simulator 9500.
I have these steps in my app:
(1) push primary (2) push then pop 2nd screen (3) primary on top with white background
<app primary screen> => <screen with associated virtual keyboard> => <app primary screen>
<app primary screen>
Above, the screen with an associated virtual keyboard is pushed (modal) then popped.
What happens is that the extent for <app primary screen> is CHANGED over this sequence.
The reason I have a white background is that the background image is clipped by this extent change.
Now how can I change the extent back to what it should be??
Specifically, at (1) the (height, width) of <app primary screen> is (440, 360).
At (3), on return it is (248, 360). This is exactly the screen real estate 'left over' after the
virtual keyboard takes up screen space.
How can I get my extent to be the proper extent for <app primary screen> ?
I tried calling sublayout, setExtent, and I get an exception because they are not called by layout().
12-14-2009 11:33 AM
Are you making use of a custom screen or manager for your screen that is not refreshing? If so, can you provide some sample code?
Or are you using the classes witin the BlackBerry API set?