Add:

  android:focusable="false"
  android:clickable="false"

to your CheckBox




On Jun 28, 5:16 am, Manish Garg <[email protected]> wrote:
> Hi All,
>
> I have a simple list view in my application. I am implementing its
> setOnItemClickListener but it is not getting called:
>
>         <ListView android:layout_width="fill_parent"
>                 android:layout_height="wrap_content"
>                 android:id="@+id/sender_added"
>                 android:layout_weight="1"
>                 android:cacheColorHint="#00000000"
>                 android:dividerHeight="1dip"
>                 android:listSelector="@drawable/tab_regular"
>                 android:divider="@drawable/listview_seperator">
>         </ListView>
>
> I am inflating it with the following row:
> <?xml version="1.0" encoding="utf-8"?>
> <RelativeLayout
>          xmlns:android="http://schemas.android.com/apk/res/android";
>          android:layout_width="match_parent"
>          android:layout_height="wrap_content"
>          android:layout_gravity="center_vertical"
>          android:padding="10dip">
>     <ImageView
>         android:layout_width="wrap_content"
>         android:layout_height="wrap_content"
>         android:id="@+id/ImageView">
>     </ImageView>
>     <TextView
>         android:id="@+id/Name"
>         android:layout_width="wrap_content"
>         android:layout_height="wrap_content"
>         android:textColor="#000000"
>         android:textSize="12dip"
>         android:layout_toRightOf="@id/ImageView">
>     </TextView>
>     <CheckBox
>         android:id="@+id/checkBox"
>         android:layout_width="wrap_content"
>         android:layout_height="wrap_content"
>         android:layout_alignParentRight="true"
>         android:button="@layout/checkbox_state">
>     </CheckBox>
> </RelativeLayout>
>
> Regards,
> Manish Garg

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to