Hi, folks I have a ListView that contains a custom view looks like this:
<?xml version="1.0" encoding="UTF-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="horizontal" > <CheckBox android:id="@+id/cb_select" android:checked="false" android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingRight="10px" /> <ImageView android:id="@+id/iv_list_file_icon" android:adjustViewBounds="true" android:scaleType="fitStart" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="top" android:maxWidth="64px" android:maxHeight="64px" /> </LinearLayout> My Activity implements OnItemClickListener interface to handle the item click event. Now my question is: If there's no that CheckBox, I can handle the OnItemClickListener.OnItemClick callback, but if I add CheckBox to my custom view, there's no OnItemClickListener.OnItemClick event occurred anymore. But I can touch CheckBox to change its state. That's not what I need, I also want to handle item click event to allow my users chooses a single item and perform specific operations. Does anybody know how to handle item click event in this case? Thanks a lot! Alex -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en