Alex Rivera | Logout

Get the height of virtual keyboard in Android

Asked 2011-05-15T15:55:12.600
15

How can I get the height of virtual keyboard in Android? Is it possible?

I try to get it from the main window, but it gives me full height of the application. But I want to get the keyboard height.

Edit
Report

1 Answer

4

You can't get the keyboard height, but you can get the height of your View, which is what you really want - and you'll get this data supplied to the onLayout call into the current view.

answered 2011-06-16T16:59:08.180

Your Answer