When the keyboard extends, the layout rises, but slightly. The Xml has two edit (Email and Password) fields and a button below (LOGIN). I can not understand how to do it correctly. I managed to do it only with ScrollView, but this option does not suit me. I would like to know how it can be done so that the layout normally rises and the distance between the button and the keyboard is 40-50dp (approximately).

PS In the Manifesto prescribed.

  • In iOS, there are event listeners - the appearance and disappearance of the keyboard. I think Android should be something like that. When the keyboard appears, we calculate its height, the height of the EditText and perform the necessary manipulations, even with animation. Try digging this way - iamthevoid
  • one
    android:windowSoftInputMode="adjustResize" registered in the manifest? - Yura Ivanov
  • @YuraIvanov yes. I tried all the components (windowSoftInputMode) to do something, but it does not work. - Satanist Devilov

0