title: Detect ExpandableListView group click
body: <p>I have a custom ExpandableListView elv and I am able to detect when a Child is clicked with the code below.</p>
  
  <pre><code>    elv.setOnChildClickListener(new OnChildClickListener() {
          public boolean onChildClick(ExpandableListView parent, View v, int groupPosition,
                  int childPosition, long id) {
  </code></pre>
  
  <p>However, when I change it to try to detect when a group item is clicked, this does not work. Does anyone know why? </p>
  
  <p>Eclipse gives me the error: </p>
  
  <blockquote>
    <p>The method
    setOnGroupClickListener(ExpandableListView.OnGroupClickListener)
    in the type ExpandableListView is not
    applicable for the arguments (new
    OnGroupClickListener(){})</p>
  </blockquote>
  
  <pre><code>    elv.setOnGroupClickListener(new OnGroupClickListener() {
          public boolean onGroupClick(ExpandableListView parent, View v, int groupPosition,
                  long id) {
  </code></pre>