[英]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: 已经尝试在清单文件中设置
android:windowSoftInputMode="adjustPan"
,当我点击底部(顶部的第4个)EditText时,软键盘将其部分隐藏:
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): 但是,这在Android模拟器中不会发生-屏幕平移,我将注意力集中在EditText上(键盘仍覆盖EditText的一小部分,但我认为可以接受):
将您的EditText放到ScrollView中 ,然后赋予属性AdjustResize ,而不是AdjustPan ,它将自动调整屏幕及其组件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.