title: Expandable listview groupview indicator shown in wrong groups
body: <p>I have group layout like this:</p>
  
  <p>
  </p>
  
  <pre><code>&lt;LinearLayout
      android:orientation="horizontal"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:padding="6dp"
      android:background="@color/listViewItemBackground"&gt;
  
      &lt;TextView
          android:id="@+id/tvGroupName"
          android:layout_width="0dp"
          android:layout_height="wrap_content"
          android:textAppearance="@style/TextAppearance.Medium"
          android:singleLine="false"
          android:layout_weight="1" /&gt;
  
      &lt;ImageView
          android:id="@+id/ivGroupIcon"
          android:layout_width="wrap_content"
          android:layout_height="match_parent" /&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p></p>
  
  <p>And in my ViewHolder <code>getGroupView</code> I do:</p>
  
  <pre><code>        if (group.children != null &amp;&amp; group.children.size() &gt; 0) {
              if (isExpanded) {
                  holder.ivGroupIcon.setImageResource(R.drawable.group_up);
              } else {
                  holder.ivGroupIcon.setImageResource(R.drawable.group_down);
              }
          }
  </code></pre>
  
  <p>I have 4 groups with only 2 groups having children. When I expand/collapse various groups, the groups without the children also get an icon displayed.</p>
  
  <p>Is this an Android problem or something wrong with my code?</p>