setOnItemClickListener on Gridview having listview inside not working properly
<p>I am having a listview inside the Gridview and trying to set the OnitemClickListener on gridview. It works when clicked outside the listview, but on clicking the listview part of gridview item its not working.</p>

<p>Following xml code i am inflating in gridview item.</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="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:descendantFocusability="blocksDescendants"&gt;

&lt;LinearLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginLeft="10dp"
    android:layout_marginRight="10dp"
    android:layout_marginTop="6dp"
    android:background="@drawable/card_background"
    android:elevation="5dp"
    android:orientation="vertical"&gt;

    &lt;RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="50dp"
        android:layout_gravity="center"&gt;

        &lt;TextView
            android:id="@+id/dashlet_title"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentLeft="true"
            android:layout_centerInParent="true"
            android:fontFamily="sans-serif-bold"
            android:gravity="center"
            android:paddingLeft="15dp" /&gt;

        &lt;ImageView
            android:id="@+id/dashlet_settings"
            android:layout_width="30dp"
            android:layout_height="30dp"
            android:layout_alignParentRight="true"
            android:layout_centerInParent="true"
            android:paddingRight="15dp"
            android:src="@drawable/settings" /&gt;

    &lt;/RelativeLayout&gt;

    &lt;View
        android:layout_width="match_parent"
        android:layout_height="1dp"
        android:layout_margin="10dp"
        android:background="#c3c3c3" /&gt;

    &lt;ListView
        android:id="@+id/dashlet_settings_items_list"
        android:layout_width="wrap_content"
        android:layout_height="90dp"
        android:divider="@null"
        android:listSelector="@android:color/transparent" /&gt;

&lt;/LinearLayout&gt;
</code></pre>

<p></p>