solved

Had to set Clickable and Focussable to false for all items including
layouts.

On Oct 14, 1:29 pm, jax <jackma...@gmail.com> wrote:
> When I use the following layout in a SimpleCursorAdapter I cannot
> select any rows.  In face the setOnItemClickListener methods does not
> even run at all.
>
> <?xml version="1.0" encoding="utf-8"?>
> <LinearLayout
>         android:orientation="horizontal"
>         android:layout_width="fill_parent"
>         android:layout_height="wrap_content"
>         android:padding="4dp" xmlns:android="http://
> schemas.android.com/apk/res/android" android:focusable="false">
>         <LinearLayout
>                 android:orientation="vertical"
>                 android:layout_width="wrap_content"
>                 android:layout_height="wrap_content"
>                 android:padding="2dp" android:focusable="false"
> android:clickable="false">
>                 <TextView
>                         android:textSize="18sp"
>                         android:layout_width="wrap_content"
>                         android:layout_height="wrap_content"
>                         android:text="name" android:id="@+id/
> row_item_name"
>                         android:focusable="false">
>                 </TextView>
>                 <TextView
>                         android:textSize="12sp"
>                         android:layout_width="wrap_content"
>                         android:layout_height="wrap_content"
>                         android:text="Check to mark as known"
>                         android:id="@+id/row_item_extra_info"
>                         android:focusable="false">
>                 </TextView>
>         </LinearLayout>
>         <LinearLayout
>                 android:orientation="vertical"
>                 android:gravity="right"
>                 android:layout_gravity="right"
>                 android:layout_width="fill_parent"
>                 android:layout_height="wrap_content"
>                 android:padding="2dp" android:focusable="true"
>                 android:clickable="true">
>
>                 <CheckBox android:layout_width="wrap_content"
>                         android:layout_height="wrap_content"
>                         android:id="@+id/row_item_checkbox"
>                         android:focusable="false"
>                         android:clickable="true">
>                 </CheckBox>
>
>         </LinearLayout>
> </LinearLayout>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to