ExpandableListView groupIndicator is disabled with CheckBox
<p>I am trying to use an <a href="http://developer.android.com/reference/android/widget/ExpandableListView.html" rel="nofollow">ExpandableListView</a> and in the group view I need a textview and a checkbox (checkbox is on the right).
The issue I am seeing is that the groupIndicator view is no longer tappable - tapping on it does not expand the group anymore. If I remove the checkbox, then groupIndicator receives events and group is expandable. The same happens with another View that receives some kind of focus, for example an EditText.
Here is the layout of the fragment containing the ExpandableListView:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent" &gt;

    &lt;ExpandableListView
        android:id="@+id/categoryList"
        android:layout_width="match_parent"
        android:layout_height="match_parent" &gt;
    &lt;/ExpandableListView&gt;

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

<p>The layout of the group:</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="match_parent"
    android:background="@color/white_background"
    android:orientation="horizontal" &gt;

    &lt;TextView
        android:id="@+id/txtCategoryGroup"
        android:layout_width="0dip"
        android:layout_height="@dimen/items_filter_group_height"
        android:layout_marginLeft="45dp"
        android:layout_marginRight="20dp"
        android:layout_weight="1"
        android:gravity="center_vertical|left"
        android:textIsSelectable="false" /&gt;

    &lt;!--
    &lt;CheckBox
        android:id="@+id/cbGroup"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" &gt;
    &lt;/CheckBox&gt;
    --&gt;


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

<p>... and, if you find useful, the layout of the child:</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="fill_parent"
    android:layout_height="@dimen/items_filter_child_height"
    android:background="@color/white_background"
    android:orientation="horizontal" &gt;

    &lt;CheckBox
        android:id="@+id/cbProperty"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" &gt;
    &lt;/CheckBox&gt;

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

<p>Attached is the layout I am getting if the CheckBox is un-commented: 
<img src="http://i.stack.imgur.com/DL2xH.png" alt="enter image description here"></p>

<p>Tapping on the red-marked groupIndicator doesn't expand the group. Leaving it commented expands it. As said above: what is strange is that the same happens with an EditText.</p>

<p>The work-around is to set the groupIndicator to @null and set the TextView's compound left drawable to something relevant in response to <a href="http://developer.android.com/reference/android/widget/ExpandableListView.OnGroupCollapseListener.html" rel="nofollow">ExpandableListView#OnGroupCollapseListener</a> and <a href="http://developer.android.com/reference/android/widget/ExpandableListView.OnGroupExpandListener.html" rel="nofollow">#OnGroupExpandListener</a>, but I am not that happy writing code for something like that.</p>

<p>Thanks!</p>
