Figure Where Keyboard ends.

I am making an android app, and I need to know where the keyboard ends, so i can position a guitexture there. In the attached image, you see the LOGIN button and how its positioned directly above the keyboard.

Basically, I had to work out the math, figuring the Aspect Ratio, and then placing the Texture in the area.