The webview is not pushed up when the input field is focused. I set android:windowSoftInputMode="adjustResize"
in manifest and the view is not in fullscreen mode. The input field is always hidden by the keyboard. Thanks
Asked
Active
Viewed 381 times
1

Coper Answald
- 11
- 4
-
check this https://stackoverflow.com/questions/40279364/android-webview-doesnt-scroll-enough-when-keyboard-opens – Shrey Garg Apr 17 '19 at 06:54
1 Answers
0
Did you try this?
wb = (WebView) findViewById(R.id.webView1);
wb.requestFocusFromTouch();
wb.requestFocus(View.FOCUS_DOWN);

SamiAzar
- 1,260
- 13
- 29
-
@CoperAnswald The problem is that webview isn't getting focus when it is load, see my edited answer. – SamiAzar Apr 17 '19 at 06:52
-
the problem persist, when the input is focused the keyboard open – Coper Answald Apr 17 '19 at 06:58
-
@CoperAnswald I think I had missed something, Is your problem to not showing keyboard when the Input has touched? or not? – SamiAzar Apr 17 '19 at 07:03
-
no, the problem is that the webview content is not pushed up when the keyboard is visible so the input field is behind – Coper Answald Apr 17 '19 at 07:10
-
@CoperAnswald Oh! you must try adjustPan instead of adjustResize in Manifest. – SamiAzar Apr 17 '19 at 07:14
-