莉莉小怪兽 2015-08-22 13:56 采纳率: 33.3%
浏览 3324
已结题

ListView的Item中的webView控件与Item点击事件冲突?

各位大神大侠们好!
我编写了一个自定义item的ListView,自定义的ListView Item里有两个控件,一个是checkBox,
另一个是webView。
一开始ListView的点击事件完全没反应,在网上搜索了答案解决了,checkBox与ListView
点击冲突,点击checkBox区域可以响应ListView的点击事件。但是点击webView 区域不能响应ListView的点击事件。

以下是我Item布局的代码
``` android:orientation="horizontal" android:layout_width="fill_parent"
android:layout_height="match_parent"
android:background="@color/white"
android:descendantFocusability="blocksDescendants"
>

<CheckBox
    android:layout_width="wrap_content"
    android:layout_height="fill_parent"
    android:id="@+id/HookItemCheckbox"
    android:background="@color/white"
    android:focusable="true"
    android:clickable="false"
    android:enabled="false"/>

<WebView
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:id="@+id/HookItemwebView"
    android:focusable="false"
  />

Thankssss!

  • 写回答

3条回答

  • devmiao 2015-08-22 23:37
    关注
    评论

报告相同问题?

悬赏问题

  • ¥15 求差集那个函数有问题,有无佬可以解决
  • ¥15 【提问】基于Invest的水源涵养
  • ¥20 微信网友居然可以通过vx号找到我绑的手机号
  • ¥15 寻一个支付宝扫码远程授权登录的软件助手app
  • ¥15 解riccati方程组
  • ¥15 display:none;样式在嵌套结构中的已设置了display样式的元素上不起作用?
  • ¥15 使用rabbitMQ 消息队列作为url源进行多线程爬取时,总有几个url没有处理的问题。
  • ¥15 Ubuntu在安装序列比对软件STAR时出现报错如何解决
  • ¥50 树莓派安卓APK系统签名
  • ¥65 汇编语言除法溢出问题