2012-01-26 26 views
3

當我嘗試在文本字段中輸入數字時,我收到了非常奇怪的日誌,標記爲'webcore'。 例如,這裏是關鍵的5,6日誌的一部分:Android Webkit在按鍵上記錄完整HTML頁面

​​

這是某種形式的解析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. 

回答

2

好的。我找到了一個解決方案 - 這是因爲PhoneGap有webSettings.setNavDump(true)出於某種奇怪的原因...並且Android WebView監聽關鍵事件 - 如果啓用了navDump而不是轉儲不同的信息...

相關問題