Android键盘重叠的输入字段仅在输入类型后滚动

时间:2018-12-17 10:12:43

标签: android cordova scroll android-webview

我有this question中描述的类似问题。我尝试过android:windowSoftInputMode="adjustResize",但是它不会自动滚动;它仅在输入内容后滚动。我需要在键盘显示后立即将输入滚动到顶部,因此在看到输入之前无需在输入中键入任何内容。

在Android 4.4,Android 5和Android 6及更高版本上不会发生此问题。我使用Cordova 6。

(图片来自Android keyboard overlapping input fields, view doesn't scroll automatically,用于演示)

enter image description here enter image description here

0 个答案:

没有答案