各位大神大侠们好!
我编写了一个自定义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!