• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

webview not responding to touch events

 
Ksh Aggarwal
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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 from 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.

Thanks in advance
 
Ksh Aggarwal
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Found the problem.

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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic