Finally found the answer! I don't know if this is correct, but it seems to work. I had to recreate the keyboard while rotating, for example:
@Override public void onConfigurationChanged (Configuration newConfig) { super.onConfigurationChanged(newConfig); createKeyboard(); } private void createKeyboard() { mKeyboard = new Keyboard(this, R.xml.qwerty); mKeyboardView = (MyKeyboardView) findViewById(R.id.keyboard_view); mKeyboardView.setKeyboard(mKeyboard); mKeyboardView.setOnKeyboardActionListener(new MyKeyboardActionListener((Activity)this)); }
Moreover, for the record it was not that the view was not changed; It was. The problem was that the keys were not changed.
source share