Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid Custom ListView item unclickable
    primarykey
    data
    text
    <p>I've got a custom listView that I'm populating with this item layout. The problem is that the OnItemClickListener even handler of ListView only captures clicks on the imageView, but not on the other 2 textViews. Anyway to fix this?</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="@dimen/Fourdp" android:layout_marginLeft="@dimen/Fourdp" android:layout_marginRight="@dimen/Fourdp" android:layout_marginTop="@dimen/Fourdp" android:gravity="left|center" android:paddingBottom="5px" android:paddingLeft="5px" android:paddingTop="5px" android:descendantFocusability="blocksDescendants"&gt; &lt;ImageView android:id="@+id/color" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="@dimen/Fourdp" android:layout_marginLeft="@dimen/Fourdp" android:layout_marginRight="@dimen/Fourdp" android:layout_marginTop="@dimen/Fourdp"/&gt; &lt;LinearLayout android:layout_width="0dip" android:layout_height="fill_parent" android:layout_gravity="left" android:layout_weight="1" android:longClickable="true" android:orientation="vertical" &gt; &lt;TextView android:id="@+id/task" android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="left" android:textSize="20sp" /&gt; &lt;TextView android:id="@+id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textColor="#336699" /&gt; &lt;/LinearLayout&gt; &lt;/LinearLayout&gt; </code></pre> <p>I've tried setting android:focusable="false" and android:clickable="false" to the ImageView, but still it doesn't work.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload