且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

软键盘与 EditText 字段重叠

更新时间:2023-09-10 15:20:04

所以,我找到了问题的根源.在我的 AndroidManifest.xml 中,我设置了

So, I've found what appears to be the cause of the issue. In my AndroidManifest.xml I had set

<uses-sdk android:minSdkVersion="3" />

显然,使用低于4"的 minSdkVersion 是问题的根源.将其更改为4"后,布局显示为它应有的样子,并且 EditText 的第一行适当地位于软键盘顶部上方.

Apparently, using a minSdkVersion below "4" was at the root of the problem. On changing it to "4", the layout appeared as it should have, and the EditText had its first line above the top of the soft keyboard appropriately.

感谢您的帮助,火卫一.

Thanks for the help, Phobos.