开发者

HTML <select> control disabled in Android WebView (in emulator)

I have a very simple Android app that's just a WebView. Everything works fine (complex Javascript etc.). However, all of the HTML select controls seem to be disabled. They display with default values, bu开发者_如何学Pythont nothing happens when I click on them, and they don't get the orange highlight when I arrow through the controls.

Other inputs (text, radios, submit) work fine, so I don't think it's a focus issue.

Configuration:

  • Eclipse IDE
  • SDK Version 8 (2.2)
  • Testing in the Emulator


I had the same problem. My problem was fixed by changing overflow:hidden to overflow:visible on a containing element.


I had the same problem.

In my case I had elements on the page that had the style position:fixed;

Although the bounding boxes of the select element and the fixed positioned elements did NOT overlap, I wasn't able to open the select dialog.

By removing a couple of fixed positioned elements I got it to work. Seems to be a bug in webview.


Same Problem, fixed it by setting position:relative on the li's containing the select fields


2 years after the fact, but in case someone pulls this up again:

If it's android 2.3, put   in every empty child element of a fixed position parent. I found that this fixed the problem for me.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜