title: Updating child item in ExpandableListView
body: <p>I have a shopping cart in the style of an ExpandableListView.</p>
  
  <p><img src="https://i.stack.imgur.com/GPTSI.png" alt="enter image description here"></p>
  
  <p><strong>I am trying to update the right drawable graphic of a child item. All    the child items start out showing a "+" and I want this to change to    a "-" when clicked.</strong></p>
  
  <p>I tried doing this in the adapter but when I scrolled through the list and opened up other group tabs I noticed items in those previously un-clicked items  were being modified as well.</p>
  
  <p>I'm not sure if I'm having an issue with view recycling in my adapter or whether something else might be causing this. Here's my code:</p>
  
  <p><strong>Custom Adapter getChildView method</strong></p>
  
  <pre><code>    @Override
      public View getChildView(final int groupPosition, final int childPosition, boolean isLastChild, View childView, ViewGroup parent) {
  
      final View row;
      final FullMenuItemHolder fullMenuItemHolder;
  
      if (childView == null) {
  
          LayoutInflater inflater = (LayoutInflater) parent.getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
          row = inflater.inflate(R.layout.full_menu_child_item, parent, false);
          fullMenuItemHolder = new FullMenuItemHolder(row);
          row.setTag(fullMenuItemHolder);
      }
  
      else {
          row = childView;
          fullMenuItemHolder = (FullMenuItemHolder) row.getTag();
      }
  
  
      // set item name
      fullMenuItemHolder.title.setText(getChild(groupPosition, childPosition).getVenue_item_name());
  
      row.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View v) {
  
              //check to see if item flagged as added to cart and set the respective drawable image
              if (!getChild(groupPosition,childPosition).getAddedToCart()) {
                  getChild(groupPosition,childPosition).setAddedToCart(true);
                  fullMenuItemHolder.title.setCompoundDrawablesWithIntrinsicBounds(null, null, fragment.getResources().getDrawable(R.drawable.remove), null);
  
  
              } else {
                  getChild(groupPosition,childPosition).setAddedToCart(false);
                  fullMenuItemHolder.title.setCompoundDrawablesWithIntrinsicBounds(null, null, fragment.getResources().getDrawable(R.drawable.add), null);
  
              }
          }
      });
  
  
  
      return row;
  }
  </code></pre>
  
  <p><strong>Adapter being set in Fragment</strong>
  <em>(called from onPostExecute in asyncTask after server download)</em></p>
  
  <pre><code> fullMenuExpListAdapter = new FullMenuExpListAdapter(this.getActivity(), listHeaderNames, listChildItems, this);
   expandableListView.setAdapter(fullMenuExpListAdapter);
  </code></pre>