title: How to collapse parent with BigNerdRanch Expand Recyclerview library
body: <p>Working with Big Nerd Ranch recycler:expand library </p>
  
  <p><code>'com.bignerdranch.android:expandablerecyclerview:1.0.3'</code></p>
  
  <p>In <code>RecyclerAdapter.Java</code> code...</p>
  
  <pre><code> @Override
  public void onParentItemClickListener(int position) {
      /**
       * @Params
       * Se comienza en -1, al clickear el primer grupo, se registra en la variable su posicion
       * al clickear el siguiente grupo, si la variable no es igual a su posicion se procede a
       * cerrar el grupo anterior.
       * */
  
      Object parent = mParentItemList.get(position);
      //Toast.makeText(mContext,"posicion "+String.valueOf(position),Toast.LENGTH_SHORT).show();
  
      if(lastExpanded == -1){
          lastExpanded = position;
  
      } else if(lastExpanded == position){
          lastExpanded = -1; //Reinicia Variable
  
          notifyItemChanged(position);
      }else{
          //Cierra grupo abierto
          int oldExpand = lastExpanded;
          Toast.makeText(mContext,"se cerro  "+String.valueOf(oldExpand),Toast.LENGTH_SHORT).show();
          lastExpanded = position;
  
          **//Need the colapse group code**
  
          notifyItemChanged(oldExpand);
          notifyItemChanged(position);
      }
  
      super.onParentItemClickListener(position);
  }
  </code></pre>
  
  <p>I need how to collapse group after clicking another parentGroup.</p>