简体   繁体   中英

Soft keyboard hides EditText

Already tried setting android:windowSoftInputMode="adjustPan" in the manifest file, When I tap the bottom (4th one from top) EditText, the soft keyboard partially hides it:

在此处输入图片说明

This however does not happen in the Android emulator - the screen pans and I get the focus on the EditText (keyboard still covers a small part of the EditText but it's acceptable I think):

在此处输入图片说明

将您的EditText放到ScrollView中 ,然后赋予属性AdjustResize ,而不是AdjustPan ,它将自动调整屏幕及其组件。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM