title: android expandable list view get view of group from child onclick listener
body: <p>i have a expandable list view in my app, each group has a textview say T having dynamic value and each group has a single child within it. I want to refer to that T textview object of that Group whose child has been clicked on so that i can change the value of T accordingly as per the child item clicked.</p>
  
  <p>I can easily get the TextView Object in case of groupClickListener but iam not able to get in case of childClickListener... pls see both here.</p>
  
  <p>mExpandableListView.setOnGroupClickListener(new OnGroupClickListener() {</p>
  
  <pre><code>        @Override
          public boolean onGroupClick(ExpandableListView parent, View v,
                  int groupPosition, long id) {
              // TODO Auto-generated method stub
              TextView moreTextView = (TextView)v.findViewById(R.id.group_more);  // this works fine
  
              }
              return false;
          }
      });
  </code></pre>
  
  <p>mExpandableListView.setOnChildClickListener(new OnChildClickListener() {</p>
  
  <pre><code>        @Override
          public boolean onChildClick(ExpandableListView parent, View v,
                  int groupPosition, int childPosition, long id) {
              // TODO Auto-generated method stub
              boolean isExpanded=false;
              if(groupStatus[groupPosition]==1)
              {
                  isExpanded=true;
              }
              View v1 = parent.getExpandableListAdapter().getGroupView(groupPosition, isExpanded, v, parent);
              TextView moreTextView = (TextView)v1.findViewById(R.id.group_more);  // doesn,t work as v1 is null all the times
              return false;
          }
      });
  </code></pre>