You don't get the height; you set your window in to resize mode and deal with your content being resized to accommodate the IME.
On Fri, May 22, 2009 at 8:33 AM, [email protected] < [email protected]> wrote: > > Hi, > > We have got all our own edit boxes etc. so we call the virtual > keyboard from SDK 1.5 in the followng way (when the use selects one of > our edit/text boxes): > > Context c = getApplicationContext(); > InputMethodManager inputManager = (InputMethodManager) > c.getSystemService( Context.INPUT_METHOD_SERVICE ); > inputManager.showSoftInput(ourCanvasInstance, 0); > > This works fine and even populates our edit boxes automatically upon > key entry, we can dismiss it by calling: > > inputManager.toggleSoftInput(0, 0); > > > The problem we have now is that we need to know the size of the > virtual keyboard so that we can resize all our popups etc to fit > within the area of the screen that is not covered by the virtual > keyboard. Is there anyway of getting the height of the default virtual > keyboard? I have noticed that android.inputmethodservice.Keyboard has > access to the height but I can't seem to find anyway to access this, > does anyone happen to know any useful pointers to be able to access > the height of the VK? > > Thanks, > Stephen > > > > > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

