title: Expand Expandable Listview in android on button Click
body: <p>I am implementing expandable list view with its custom adapter. The group element needs to have 2 buttons, first as a parent group element and a button below it.</p>
  
  <p>My problem is, I want to expand the list view on click of the button below instead of the group element. Also, the group element <code>onClick</code> needs to call another activity.</p>
  
  <p>I can disable the expanding of the <code>expandablelistview</code>  by</p>
  
  <pre><code>mainExpListView.setOnGroupClickListener(new OnGroupClickListener() {
  
      @Override
      public boolean onGroupClick(ExpandableListView parent, View v, int groupPosition, long id) 
      {   
  
          return false;
      }
  </code></pre>
  
  <p>So my questions:</p>
  
  <ol>
  <li><p>Is there any way to disable the group element and get it to perform other functions (Like navigate to another activity?)</p></li>
  <li><p>How to set an <code>onclick</code> method on them bottom image to expand?</p></li>
  </ol>
  
  <p><img src="https://i.stack.imgur.com/re7aj.png" alt="enter image description here"></p>