Search code examples
androidwebviewandroid-input-method

How to avoid the Input Method hiding the EditText and Button at the bottom of a WebView


I load a web page by using WebView in my app and there are EditText and Button at the bottom of the page. When I press the EditText, the soft input method will show, but the input method hides the EditText and Button.

I want the EditText and Button move to the top of the input method, so the input method won't hide them.

I added the android:windowSoftInputMode="adjustPan" to my activity tag in the AndroidManifest.xml, but it didn't work.

What else can I do?


Solution

  • Rather than using adjustPan property,Try using following property.It works fine for me..

            android:windowSoftInputMode="adjustResize"