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

浪子不回头ぞ 提交于 2019-12-06 03:02:29

问题


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, but 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

回答1:


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




回答2:


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.




回答3:


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




回答4:


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.



来源:https://stackoverflow.com/questions/4697908/html-select-control-disabled-in-android-webview-in-emulator

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!