title: set text of edittext in child of expandablelistview with button edits both groups children edittext boxes
body: <p>I have a EditText field in my child view for the expandablelistview that is changed with a button. the layout is like this</p>
  
  <p>Breakfast (group)
  subtractBTN  EditText  addBTN (child) position 0</p>
  
  <p>Lunch (group)
  subtractBTN  EditText  addBTN (child) position 0 of second level</p>
  
  <p>Now every time I hit the  add or subtract buttons in a child then the corresponding child edittext in the other group changes too. I have been researching how to fix this but I'm stumped. I think I need to use getChild() or groupPosition , childPosition somehow. But with the setText() method I'm not sure where to put it.</p>
  
  <pre><code>@Override
  public View getChildView(final int groupPosition, final int childPosition,
          boolean isLastChild, View convertView, ViewGroup parent) {
      Item item = (Item) getChild(groupPosition, childPosition); // 10.14.14
      if (convertView == null) {
          LayoutInflater infalInflater = (LayoutInflater) context
                  .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
          convertView = infalInflater.inflate(R.layout.child_view, parent, false); 
      }
      convertView.setPadding(10, 0, 0, 10);
  
      TextView itemNameTxt = (TextView)convertView.findViewById(R.id.itemNameTxt);
      TextView itemCostTxt = (TextView)convertView.findViewById(R.id.itemCostTxt);
  
      itemNameTxt.setText(item.getItem_name()); // 10.14.14
      itemCostTxt.setText(item.getItem_price());
  
      //add edittext for item count
      final EditText itemCount = (EditText)convertView.findViewById(R.id.itemQtTxt);
      itemCount.clearFocus(); //stop focus on edittext field 10.13.14
      // 10.11.14 ADD Buttons and each button's onClick listener and method
      //buttons and links to child_view components 
      Button addBtn = (Button)convertView.findViewById(R.id.addBTN);
      Button subBtn = (Button)convertView.findViewById(R.id.subtractBTN); //use infalInflater (convertView) as link
      //addBtn listener and method
      addBtn.setOnClickListener(new OnClickListener(){
  
          @SuppressLint("UseValueOf") public void onClick(View convertView) {
              // TODO Auto-generated method stub
              int sCount = Integer.parseInt(itemCount.getText().toString());// get string from edittext, turn string to int type
              if(sCount &lt; 10){
                  // Toast to test
                  Toast.makeText(convertView.getContext(), "add button pressed @ \nparent " + 
                  groupPosition + " &amp; child @ "  + childPosition , Toast.LENGTH_SHORT).show();
                  // set item count
                  //int sCount = Integer.parseInt(itemCount.getText().toString());// get string from edittext, turn string to int type
  
                  int intCount = sCount+1;// add one to count
  
                  itemCount.setText(new Integer(intCount).toString());// set edittext field. getGroup(groupPosition)
                  //itemCount.setText("" + intCount);
              }
          }
  
      });
  </code></pre>