3

Been looking through various threads to figure this out but I'm still stumped. When I apply "adjustPan" to an activity with an EditText at the bottom, the UI is pushed up correctly but the Edit Text is slightly obscured by the keyboard at the bottom. After closer inspection I noticed it obscures just under the actual text in the edit text so that I can see the full view when I add a new line. It's as if the android mark for what is the bottom of the edit text view is actually the bottom of the last line of text in the edit text rather than the full container. To this end I'm losing a few pixels at the bottom. Would appreciate any thoughts on the matter! Is it a bug of some description perhaps? Been driving me crazy!

Also of note, the workaround of wrapping everything in a scrollView and using adjustResize instead is unfortunately not an option in this case.

Thanks!

Garry McKee
  • 141
  • 1
  • 9

1 Answers1

0

Try adding android:windowSoftInputMode="adjustResize" into the activity section of your AndroidManifest.xml file.

<activity>
        android:name=".MainActivity"
        android:windowSoftInputMode="adjustResize" 
</activity>
Drew Szurko
  • 1,601
  • 1
  • 16
  • 32