EditText Blocked by Keyboard (EBK)


EBK:   SOLD       




Hi dev, I'd like to share a little experience, when I was working on an Android project with a form UI and there were a lot of EditTexts that needed to be filled in.

The problem arises when filling out the form until it reaches the EditText in the middle of the UI, the user cannot see the EditText because it is covered by the soft keyboard.

Okay, maybe some of you still don't get the picture, I have a relevant illustration that hopefully can trigger your imagination.

Let's say I have a UI that is already too close to the bottom, then when my cursor focuses on the EditText, it is covered by the soft keyboard. So, the big question is, is there a most revolutionary way to make the EditText focus automatically above the keyboard? for example like this.

The answer is YES. Please open the Manifest in the Android project and define it  android:windowSoftInputMode in the related activity.

<activity android:windowSoftInputMode="adjustPan">

Done!


Post a Comment

Previous Next

نموذج الاتصال