网页流量不响应触摸事件 [英] Webview not responding to touch events

查看:123
本文介绍了网页流量不响应触摸事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

林使用嵌入式web视图,以显示它是由图像的缩略图的一个网页。这些缩略图的链接来进一步网页。现在,我的应用程序随机停止响应对这些缩略图我的触摸事件。它发生更频繁,当设备从待机唤醒。但这个问题是固定的,当我加载其他页面,回到缩略图页面。

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.

我尝试添加一个 onClickListener 来web视图,但它不会返回任何东西,甚至在应用程序运行正常。

I tried adding an onClickListener to the webview but it never return anything, even when the application is running fine.

推荐答案

显然,Android的网​​页视图组件有由于它随机停止响应触摸事件的错误。
有关详细信息 HTTP://$c$c.google。 COM / p /安卓/问题/细节?ID = 929

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

错误是由于属性的android:layout_height =在Web视图组件WRAP_CONTENT。解决方法可以为这个属性,而不是 WRAP_CONTENT

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

这篇关于网页流量不响应触摸事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆