私はリストビューを持っています。ListView の各行/項目には、 TextViewとImageViewの 2 つのビューが含まれています。ImageViewのみが focussable および clickable になり、 textView は focusable および clickable であってはなりません。
Eachrow.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal" >
<TextView
android:id="@+id/textViewEachBlockedKeyword"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Keyword"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
android:layout_marginLeft="5dp"
android:textAppearance="?android:attr/textAppearanceMedium" />
<ImageView
android:id="@+id/imageViewBlockKeywordDelete"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="3.1"
android:layout_marginLeft="2dp"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
android:src="@drawable/delete" />
</LinearLayout>
これを行う方法 ?ありがとう