Kivy keyboard height
Question: For an app I'm creating in Kivy I would like to know the height of the
keyboard, so I can position the widgets accordingly. I heard plyer
(<https://github.com/kivy/plyer>) is good for cross-platform (I wish to
develop for Android and iOS (and Windows phone)), however it seems it doesn't
cover keyboard control.

How can I get the information about the height of the keyboard in Android (and
iOS)? I program in Python 3 (2.7 would help as well if you don't know it in
Python 3). Hardcoded keyboard height would be bad, as keyboard heights differ.


Answer: The master branch contains some new additions that let you manage this. Using
`Window` (`from kivy.core.window import Window`) you have:

  * `Window.keyboard_height` gives the current height of the software keyboard
  * `Window.softinput_mode` can be any of `''` (empty) in which case you can use keyboard_height as above, `'pan'` in which case the kivy view is shifted upwards so the keyboard doesn't overlap, or `'resize'` in which the kivy view is resized to fit the space between the keyboard top and the top of the screen.

These are in the doc for [Window](http://kivy.org/docs/api-
kivy.core.window.html).

There isn't really a good way to do this in the current stable release, though
maybe you could call the pan or resize modes with pyjnius.

