Unfortunately, as far for Android 5.0 (dont know after) theres no way to get the keyboard height. So you can’t use this value to position your View.
But, you can use the softKeyboard relayout to do what you want, by using softKeyboard (at the Activity manifest) with a value of “resize” will make your root layout View to be resized to the size of the remaining screen space. By positioning your view at the bottom will make it exactly on top of the keyboard.
PS: Also, your root view needs its height value to be match_parent instead of anything else (or you will need to deal in hard other ways)
Maybe you mean you want to replace the keyboard location instead of being on “top of it” (NORTH?), in this case, you should use a CustomView that extends View and not use the EditText that does open the keyboard for you