Android soft keyboard covers edittext field


Question

Is there a way to make the screen scroll to allow the text field to be seen?

1
153
5/31/2012 1:34:41 PM

Accepted Answer

Are you asking how to control what is visible when the soft keyboard opens? You might want to play with the windowSoftInputMode. See developer docs for more discussion.

155
8/28/2017 10:43:44 PM

I had same issues. Try following code:

android:windowSoftInputMode="adjustPan"

add it to your manifest.xml in the activity tag of the activity that holds the input. example:

<activity
            android:name=".Activities.InputsActivity"
            ...
            android:windowSoftInputMode="adjustPan"
            />

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Icon