I implemented a customized keyboard as a popup window as below.
LayoutInflater layoutInflater = (LayoutInflater)getBaseContext().getSystemService(LAYOUT_INFLATER_SERVICE);
keyboardView = layoutInflater.inflate(R.layout.keyboard_guess, null);
final PopupWindow popupWindow = new PopupWindow(
keyboardView,
ViewGroup.LayoutParams.MATCH_PARENT,
ViewGroup.LayoutParams.WRAP_CONTENT,
true);
// init keyboard keys
setKeyBoardKeys();
popupWindow.showAtLocation(keyboardView, Gravity.BOTTOM, 0, 0);
The custom keyboard pops up when I select an element in a row of the list view.
Everything works fine. But when I select an element at the bottom of the list the popup keyboard hides the selected row. How can I prevent selected row not be hidden by the popup keyboard by moving the list up.