问题描述
更新:这其实是一个问题的软糖:
UPDATE: This is actually a JellyBean issue:
模拟器中运行ICS:
Emulator running ICS:
模拟器中运行JB:
Emulator running JB:
这样模拟器的设置是一样的(API级别明显不同)。经过测试,在3 differerent设备验证:歌Nexus S,Galaxy Nexus和GS3
So the emulator settings are the same (API level different obviously). Tested and verified on 3 differerent devices: Nexus S, Galaxy Nexus, and GS3.
我有一个web视图acivity该显示器的一对夫妇不同的网页。我改变的基础上正在显示的内容URL的默认缩放设置。
下面几行:
I have a webView acivity that display's a couple of different web pages. I change the Default Zoom Settings based on what url is being displayed.The following line :
webSettings.setDefaultZoom(WebSettings.ZoomDensity.FAR);
在生产中ICS看到的视图(我得到什么2.2- 4.0.4相同的行为),但与软糖好像是不被认可的DefaultZoom。
was producing the view seen in ICS ( I get same behavior with anything 2.2- 4.0.4), but with JellyBean it seems like the DefaultZoom is not being recognized.
任何其他人碰到这个?我觉得这是一个软糖错误,但希望在提交前这里查看。
Any one else encounter this ? I feel like this is a bug with JellyBean, but wanted to check back here before submitting.
推荐答案
这是怎样的一个旧线,但如果你仍然有同样的问题,我发现,固定一个类似的问题,我的设置。发生在果冻豆(4.1.2)对三星平板的问题。
It's kind of a old thread, but if you are still having the same issue I found a setting that fixed a similar issue for me. The issue occurred on Jelly Bean (4.1.2) on a Samsung Tablet.
webView.getSettings().setLayoutAlgorithm(WebSettings.LayoutAlgorithm.SINGLE_COLUMN);
这篇关于银河SIII忽略setDefaultZoom?更新:软糖问题与的WebView?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!