title: submenu for child in ExpandableListView
body: <p>I have a <code>ExpandableListView</code> in my XML, by using <code>BaseExpandableListAdapter</code>, I created a parent list and child lists. When I click on a parent list item, the submenu will open (child List).</p>
  
  <p>Now my problem that I want create submenu for child List and when I click on each sub menu(child List) open another sub menu. For example, for <em>red 1</em>, I want create a submenu and when I click on "red 1" link parent list open submenu</p>
  
  <p><img src="https://i.stack.imgur.com/4Ci8A.jpg" alt="enter image description here"></p>
  
  <pre><code>public class MyAdapter extends BaseExpandableListAdapter {
  
  String [] parentList= {"red","blue","green"};
  
  String [][] childList = {{"red 1","red 2","red 3"},
                          {"blue 1","blue 2","blue 3"},
                          {"green 1","green 2","green 3"}};
  
  
  Context context;
  
  public MyAdapter(Context context){
  
      this.context=context;
  
  }
  @Override
  
  public int getGroupCount() {
      return parentList.length;
  
  }
  
  @Override
  public int getChildrenCount(int parentPosition) {
      return childList[parentPosition].length;
  
  }
  
  @Override
  public Object getGroup(int parentPosition) {
      return parentList[parentPosition];
  }
  
  @Override
  public Object getChild(int parentPosition, int childPosition) {
      return childList[parentPosition][childPosition] ;
  }
  
  @Override
  public long getGroupId(int parentPosition) {
      return parentPosition;
  }
  
  @Override
  public long getChildId(int parentPosition, int childPosition) {
      return childPosition;
  }
  
  @Override
  public boolean hasStableIds() {
      return false;
  }
  
  @Override
  public View getGroupView(int parentPosition, boolean isExpanded, View convertView, ViewGroup parent) {
      TextView textView = new TextView(context);
      textView.setText(parentList[parentPosition]);
      textView.setPadding(140,0,0,0);
      textView.setTextSize(30);
      return textView;
  
  }
  
  @Override
  public View getChildView(int parentPosition, int childPosition, boolean isLastChild, View convertView, ViewGroup parent) {
      final TextView textView = new TextView(context);
      textView.setText(childList[parentPosition][childPosition]);
      textView.setPadding(175, 0, 0, 0);
      textView.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View v) {
  
              Toast.makeText(context, textView.getText().toString(), Toast.LENGTH_SHORT).show();
  
          }
      });
      return textView;}
  
  @Override
  public boolean isChildSelectable(int parentPosition, int childPosition) {
      return false;
  }
  </code></pre>
  
  <p>}</p>