Android的web视图显示变得混乱银河S4

Android的web视图显示变得混乱银河S4

本文介绍了Android的web视图显示变得混乱银河S4的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当装上的Galaxy S 4(V 4.2.2)某些网页视图,显示当用户使用HTML输入交互变得混乱。

When loading certain webviews on Galaxy S 4 (v 4.2.2), display gets messy when user interacts with HTML inputs.

通过SO和其他来源细算,看来此问题是由于设备错误地或部分地绘制web视图,因为它改变了

After looking through SO and other sources, it seems that the problem is due to the device incorrectly or partially drawing the webview as it changes.

我试图设置下,没有成功:

I tried to set the following, without success :

在清单:

<application
    ...
    android:hardwareAccelerated="true">

<application
    ...
    android:hardwareAccelerated="false">

在活动:

mWebView.getSettings().setRenderPriority(WebSettings.RenderPriority.HIGH);

mWebView.getSettings().setPluginState(android.webkit.WebSettings.PluginState.ON_DEMAND);

mWebView.setScaleType(XXX); (I tried everything)

我还发现,logcat的打印类似:onSizeChanged X:XXX Y:YYY。:当错误发生

这个问题似乎只有这个特定的设备(尝试在银河S2,Galaxy Note的2和Nexus 4)发生。

This issue seems to only happen on this specific device (tried on Galaxy S2, Galaxy Note 2 and Nexus 4).

有什么想法?

推荐答案

很多努力寻找一个像样的解决方案后,最终定盘删除以下从CSS:

After a lot of struggling to find a decent solution, the final fix was to REMOVE the following from css:

-webkit-transform: translate3d(0,0,0)

奇怪的是,在this SO话题,有人建议添加此属性来解决类似的问题。我不知道究竟这行做了什么,但如果你遇到类似的问题,我强烈建议你看看你的CSS这个属性。

The weird thing is that in this SO topic, it was advised to ADD this attribute to fix a similar problem... I don't exactly know what this line does, but if you meet a similar issue, I strongly advise you to look your CSS for this attribute.

希望这可以帮助别人!

干杯。

这篇关于Android的web视图显示变得混乱银河S4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 05:09