Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to know height of softkeyboard [duplicate]

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.

like image 974
Adem Avatar asked Nov 26 '22 02:11

Adem


1 Answers

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.

like image 163
chrisdowney Avatar answered Nov 27 '22 16:11

chrisdowney