Я использую ListView, чтобы показать список.
Мой ряд строк, как показано ниже:
<?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:gravity="center_vertical"
android:orientation="horizontal" >
<CheckBox
android:id="@+id/select_folder_check"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<ImageView
android:id="@+id/select_folder_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<TextView
android:id="@+id/select_folder_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge" />
</LinearLayout>
Теперь я щелкаю в любом месте строки, флажок ставится, но не запускается onListItemClick ().
Я хочу сделать это, нажмите флажок, его, как проверить.
Если щелкнуть ImageView или TextView, запустите onListItemClick ().
Как я могу это сделать?