title: how to hide ExpandableListView indicator for groups with no children
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/4145090/expandablelistview-hide-indicator-for-groups-with-no-children">ExpandableListView - hide indicator for groups with no children</a>  </p>
  </blockquote>
  
  
  
  <p>hide indicator for groups with no children</p>
  
  <p>main.xml</p>
  
  <pre><code>&lt;ExpandableListView 
  android:id="@+id/elv"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:groupIndicator="@drawable/selector"&gt;
  &lt;/ExpandableListView&gt;
  </code></pre>
  
  <p>selector.xml</p>
  
  <pre><code>&lt;selector xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;item android:state_empty="true" android:drawable="@android:color/transparent"/&gt;
      &lt;item android:state_expanded="true" android:drawable="@drawable/expanded" /&gt;
      &lt;item android:drawable="@drawable/collapse" /&gt;
  &lt;/selector&gt;
  </code></pre>
  
  <p>it doesnt work for my ICS, it seems that the state of all collapsed groups are empty</p>