机器人的WebView硬件加速键盘毛刺 [英] Android WebView Hardware Accelerated Keyboard Glitch
问题描述
当的WebView是硬件加速,点击输入框会导致键盘出现,HTML是redrawed移动并复制了一下:
When WebView is hardware accelerated, clicking on input field causes keyboard to appear and html is redrawed shifted and duplicated for a moment:
1)当软键盘显示的WebView平移其内容左下角,然后againt到正常位置。导致短期来看,能够重复。
1) When soft keyboard is appearing WebView pans its content to bottom-left, then againt to normal position. Causes short view-able duplication.
2),当更换键盘(例如ABC->号)的内容平移向下键盘高度,然后回到正常位置。导致短期来看,能够重复。
2) When changing keyboards (ex. abc->numbers) contents are panned down by keyboard height and then back to normal position. Causes short view-able duplication.
在测试了两款Android 4.0平板电脑,如果硬件加速关闭没有这样的毛刺出现。
Tested on two Android 4.0 tablets, if hardware accelerations is turned off no such glitches appear.
我没能发现的任意的信息,这一点,有没有人经历过同样的问题?
I failed to found any information on this, has anyone experienced same problem?
推荐答案
所以,我终于找到了一些解决方案:
So I finally found some solutions:
-
布局页边距整个的WebView内容的动作,因此将其设置为
0px
修复了这个问题。
安卓windowSoftInputMode =adjustPan
的web视图的活动
这篇关于机器人的WebView硬件加速键盘毛刺的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!