Webview not responding to touch events
Im using an embedded webview to display a webpage which is made up of image thumbnails. These thumbnails are links to further webpages. Now my application randomly stops responding to my touch events on these thumbnails. It happens more frequently when the device wakes up f开发者_Python百科rom a standby. but this problem is fixed when i load some other page and come back to the thumbnails page.
I tried adding an onClickListener
to the webview but it never return anything, even when the application is running fine.
Apparently Android Webview
component has a bug due to which it randomly stops responding to touch events.
For more details http://code.google.com/p/android/issues/detail?id=929
Bug is due to the attribute android:layout_height="wrap_content"
in the web view component. Workaround can be any other value for this attribute instead of wrap_content
精彩评论