PhoneGap:Android软键盘涵盖了输入字段 [英] PhoneGap: Android soft keyboard covers input fields

查看:92
本文介绍了PhoneGap:Android软键盘涵盖了输入字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用的PhoneGap应用程序遇到问题.我的应用程序具有很多形式,因为该应用程序的目的主要是为数据库提供一个不错的用户界面.但是,每当用户尝试编辑靠近底部的输入字段时,Android键盘就会弹出并覆盖该字段,从而使用户看不到他/她在写什么.

I am having issues with a PhoneGap application that I'm working in. My app has lots of forms, since the objective of the app is mostly to provide a nice user interface to a database. However, whenever the user tries to edit an input field that is close to the bottom, the Android keyboard will pop up and cover the field, so that the user cannot see what he/she is writing.

您知道是否有解决方法吗?有没有人在他们的应用程序上遇到过这个问题?

Do you know if there is a workaround for this? Has anyone come across this issue on their apps?

推荐答案

在这种情况下您可以做什么(遇到此问题时我该怎么做...):在字段上添加焦点事件,并向上滚动文档.因此,您将在页面顶部看到输入字段:)

What you can do in this case (what I did when I had this problem...): add on-focus event on fields, and scroll up document. So you will see input field on the top of page :)

这篇关于PhoneGap:Android软键盘涵盖了输入字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆