01-06-2009 10:32 PM
I have the issue as follow:
There is a EditField on screen and lays at the bottom of screen. When i move focus to this field, the virtual keyboard show on automatically, it makes the screen scroll up and hide a part of the header. Can anyone show me how to keep the header visible in this case?
This problem doesn't occur if i don't make focus to EditField.
And is there any listener for virtual keyboard 's display/undisplay event, edit field 's focus event?
01-08-2009 03:23 PM
01-09-2009 01:14 AM
It 's just custom tab control and lays on the top of screen. I want to keep tab control fixed and only change the content area below. In this case, the virtual keyboard shows on and makes screen sroll up. Now i found the solution to solve this problem. By using these method:
protected void onMenuDismissed(Menu menu); (Screen method)
protected void onFocus(int direction); (EditField method)
I can catch the event of opening or closing Virtual Keyboard and call Screen.invalidate() method to repaint and reduce the content area.
Thanks very much for your reply.
04-19-2010 02:31 AM
can you tell me what editfield method and screen method refers to in your code. just a little more description. am facing the same problem.
it is very helpful to me.