How to setup virtual keyboard on devices

I got integrated keyboard enabled. But when it shows, it hides input widget.

I want my main widget to slide up. To see what you are typing. Like in all apss when you type something.

I read that you should write it manually. But where to start? How to get height of virtual keyboard, how to get events.

Please