当我尝试在文本字段中输入数字时,我收到了非常奇怪的日志标记'webcore'。 例如,以下是密钥5和6的日志的一部分:
01-26 19:26:31.510: D/webcore(1221): HTML 0x183440
01-26 19:26:31.510: D/webcore(1221): HEAD 0x1838e0
01-26 19:26:31.510: D/webcore(1221): META 0x1d2d58
01-26 19:26:31.510: D/webcore(1221): META 0x1d0cc8 NAME=viewport
01-26 19:26:31.510: D/webcore(1221): TITLE 0x1ca118
01-26 19:26:31.510: D/webcore(1221): #text 0x1ca460 "Text"
01-26 19:26:31.510: D/webcore(1221): STYLE 0x1ca700
01-26 19:26:31.510: D/webcore(1221): #text 0x1ca6c0 "\nhtml,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,e {\n border-collapse:collapse;\n border-spacing:0\n}\nimg {\n border-width: 0px;\n}\n"
这是某种解析过的HTML ...
以下是密钥8的日志的一部分:
01-26 19:28:54.490: D/webcoreglue(1221): RenderView at (0,0) size 320x508
01-26 19:28:54.490: D/webcoreglue(1221): layer at (0,0) size 320x0
01-26 19:28:54.490: D/webcoreglue(1221): RenderBlock {HTML} at (0,0) size 320x0
01-26 19:28:54.490: D/webcoreglue(1221): layer at (0,40) size 320x418
01-26 19:28:54.490: D/webcoreglue(1221): RenderBlock (positioned) zI: 1 {DIV} at (0,40) size 320x418
01-26 19:28:54.490: D/webcoreglue(1221): layer at (0,40) size 320x215
01-26 19:28:54.490: D/webcoreglue(1221): RenderBlock (positioned) zI: 1 {DIV} at (0,0) size 320x215
01-26 19:28:54.490: D/webcoreglue(1221): RenderBlock {SECTION} at (0,0) size 320x215
这是最有趣的事情 - 键入7后应用程序冻结:
01-26 19:30:31.460: D/webcoreglue(1221): RenderView at (0,0) size 320x508
01-26 19:30:31.460: D/webcoreglue(1221): layer at (0,0) size 320x0
01-26 19:30:31.460: D/webcoreglue(1221): RenderBlock {HTML} at (0,0) size 320x0
01-26 19:30:31.460: D/webcoreglue(1221): layer at (0,40) size 320x418
01-26 19:30:31.460: D/webcoreglue(1221): RenderBlock (positioned) zI: 1 {DIV} at (0,40) size 320x418
01-26 19:30:31.460: D/webcoreglue(1221): layer at (0,40) size 320x215
01-26 19:30:31.460: D/webcoreglue(1221): RenderBlock (positioned) zI: 1 {DIV} at (0,0) size 320x215
01-26 19:30:31.460: D/webcoreglue(1221): RenderBlock {SECTION} at (0,0) size 320x215
01-26 19:30:31.460: D/webcoreglue(1221): RenderBlock {DIV} at (0,0) size 320x215
01-26 19:30:31.460: D/webcoreglue(1221): RenderBlock {DIV} at (0,0) size 320x215
01-26 19:30:31.460: D/webcoreglue(1221): RenderBlock {FORM} at (10,10) size 300x195
01-26 19:30:31.460: D/webcoreglue(1221): RenderBlock (anonymous) at (0,0) size 300x85
01-26 19:30:31.460: D/webcoreglue(1221): RenderTextControl {INPUT} at (0,0) size 300x42 [color=#767677] [bgcolor=#FFFFFF] [border: (1px solid #E4D6BE) none (1px solid #E4D6BE)]
01-26 19:30:31.460: D/webcoreglue(1221): RenderText {#text} at (0,0) size 0x0
01-26 19:30:31.460: D/webcoreglue(1221): RenderTextControl {INPUT} at (0,42) size 300x43 [color=#767677] [bgcolor=#FFFFFF] [border: (1px solid #E4D6BE)]
01-26 19:30:31.460: D/webcoreglue(1221): RenderText {#text} at (0,0) size 0x0
01-26 19:30:31.460: D/webcoreglue(1221): RenderBlock {A} at (95,105) size 110x20
01-26 19:30:31.460: D/webcoreglue(1221): RenderText {#tex
WebView不再响应触摸事件...
01-26 19:33:46.437: W/webview(1221): Miss a drag as we are waiting for WebCore's response for touch down.
答案 0 :(得分:2)
确定。我找到了一个解决方案 - 这是因为PhoneGap出于某些奇怪的原因而 webSettings.setNavDump(true) ...并且Android WebView会侦听关键事件 - 如果启用了navDump而不是转储不同的信息。