Button inside ListView is not working
<p>I am using ListView for making this layout(ScreenShot). Here when I click Button 1st, it is not worked. But if I click ListItem 1st then I click Button it works.</p>

<p><a href="https://i.stack.imgur.com/SrgSL.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SrgSL.jpg" alt="enter image description here"></a></p>

<p>Even I used <strong>android:descendantFocusability="blocksDescendants"</strong> in the layout.
<strong>android:focusable="false" &amp; android:focusableInTouchMode="false"</strong> inside of Button. But nothing worked.</p>

<p>Please help me to fix it.</p>

<p>My Codes:
<strong>xml:</strong></p>

<pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:descendantFocusability="blocksDescendants"
    android:orientation="vertical"&gt;

    &lt;android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:card_view="http://schemas.android.com/apk/res-auto"
        android:id="@+id/cardlist_item"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_margin="5dp"
        android:background="@drawable/curved_shape"
        android:orientation="vertical"
        card_view:cardElevation="7dp"&gt;


        &lt;LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical"&gt;

            &lt;LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:background="@color/white"
                android:orientation="horizontal"&gt;

                &lt;ImageView
                    android:layout_width="80dp"
                    android:layout_height="80dp"
                    android:layout_margin="14dp"
                    android:layout_marginRight="14dp"
                    android:src="@drawable/image_4" /&gt;

                &lt;LinearLayout
                    android:layout_width="wrap_content"
                    android:layout_height="match_parent"
                    android:layout_margin="14dp"
                    android:orientation="vertical"&gt;

                    &lt;TextView
                        android:id="@+id/cartProduct"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginTop="8dp"
                        android:text="Fusce veh"
                        android:textColor="#9F9F9F" /&gt;

                    &lt;TextView
                        android:id="@+id/cartQuantity"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginTop="8dp"
                        android:text="100 g"
                        android:textColor="#9F9F9F" /&gt;

                    &lt;LinearLayout
                        android:layout_width="225dp"
                        android:layout_height="wrap_content"
                        android:orientation="horizontal"
                        android:weightSum="1"&gt;

                        &lt;TextView
                            android:id="@+id/symbol"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_marginTop="8dp"
                            android:text="Rs "
                            android:textColor="#9F9F9F" /&gt;

                        &lt;TextView
                            android:id="@+id/cartPrice"
                            android:layout_width="0dp"
                            android:layout_height="wrap_content"
                            android:layout_marginRight="10dp"
                            android:layout_marginTop="8dp"
                            android:layout_weight="0.48"
                            android:text="19.99"
                            android:textColor="#9F9F9F" /&gt;

                        &lt;TextView
                            android:id="@+id/cartPriceDum"
                            android:layout_width="0dp"
                            android:layout_height="wrap_content"
                            android:layout_marginRight="10dp"
                            android:layout_marginTop="8dp"
                            android:layout_weight="0.48"
                            android:text="19.99"
                            android:textColor="#9F9F9F"
                            android:visibility="gone" /&gt;

                        &lt;ImageView
                            android:id="@+id/ivDecrease"
                            android:layout_width="0dp"
                            android:layout_height="wrap_content"
                            android:layout_marginLeft="10dp"
                            android:layout_weight="0.1"
                            android:focusable="false"
                            android:focusableInTouchMode="false"
                            android:src="@drawable/ic_action_expand" /&gt;

                        &lt;TextView
                            android:id="@+id/cartCount"
                            android:layout_width="0dp"
                            android:layout_height="wrap_content"
                            android:layout_gravity="center"
                            android:layout_marginLeft="1dp"
                            android:layout_marginRight="1dp"
                            android:layout_weight="0.2"
                            android:gravity="center"
                            android:text="1"
                            android:textSize="15dp"
                            android:textStyle="bold" /&gt;

                        &lt;ImageView
                            android:id="@+id/ivIncrease"
                            android:layout_width="0dp"
                            android:layout_height="wrap_content"
                            android:layout_weight="0.1"
                            android:focusable="false"
                            android:focusableInTouchMode="false"
                            android:src="@drawable/ic_action_collapse" /&gt;
                    &lt;/LinearLayout&gt;
                &lt;/LinearLayout&gt;
            &lt;/LinearLayout&gt;

            &lt;View
                android:layout_width="match_parent"
                android:layout_height="1dip"
                android:background="#E4E4E4" /&gt;

            &lt;LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:background="#F8F8F8"
                android:descendantFocusability="blocksDescendants"
                android:orientation="horizontal"
                android:weightSum="1"&gt;

                &lt;Button
                    android:id="@+id/addTowish"
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_weight="0.5"
                    android:background="#F8F8F8"
                    android:focusable="false"
                    android:focusableInTouchMode="false"
                    android:text="ADD TO WISHLIST"
                    android:textColor="#787878" /&gt;

                &lt;View
                    android:layout_width="1dip"
                    android:layout_height="match_parent"
                    android:background="#E4E4E4" /&gt;

                &lt;Button
                    android:id="@+id/remove"
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_weight="0.5"
                    android:background="#F8F8F8"
                    android:focusable="false"
                    android:focusableInTouchMode="false"
                    android:text="REMOVE"
                    android:textColor="#787878" /&gt;
            &lt;/LinearLayout&gt;
        &lt;/LinearLayout&gt;

    &lt;/android.support.v7.widget.CardView&gt;

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