`
wang_peng1
  • 浏览: 3905159 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

webView焦点 以及响应输入发的问题

阅读更多

今天在webView中使用WebView w = new WebView (this); 
w.loadData("<html><body>fooz <input></body></html>", "text/html", "utf8"); 
setContentView (w); 

但是不能造字段中响应 除了滑轮可以

但是

 the T-Mobile G1 (1.6) 
-- the Google Ion (1.5) 
-- the Nexus One (2.1) 
-- the Motorola DROID (2.0.1) 这些设备中是可以的

而且在webView中如果有文本框 却不能响应调入出输入法

最后使用

myWebview.requestFocusFromTouch(); 这个解决

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics