There is an EditText , when launching a fragment, the keyboard is called, but the back button changes to hide the keyboard. How to get rid of it? Those. so that the button back - was the transition to the previous fragment, and not hiding the keyboard.

  • "Ie, so that the button back - was the transition to the previous fragment, and not hiding the keyboard." I do not remember this, make a different keyboard and block the current one (your application is strange, which violates the standards). - Denis Kotlyarov

1 answer 1

If I understand you correctly, then you need to hang on the activit, from where you manage the fragments of the rewritten method:

 @Override public void onBackPressed() { // Не скрывать клавиатуру и вызвать нужный фрагмент super.onBackPressed(); }