title: Android, RecyclerView - Do something with invisible items
body: <p>I'm using <code>recyclerView</code> to implement <code>ExpandableList</code> and I want when user clicks on <code>parent</code> view, other expanded parents collapse. It works nice with code below:</p>
  
  <pre><code>private void collapseOthers(int position) {
          for (int i = 0; i &lt; ol.size(); i++) {
              OrderForShow o = ol.get(i);
              if (i != position) {
                  if (!o.isChild()) {
                      if (o.getChilds() == null) {
                          RecyclerView.ViewHolder vh = rView.findViewHolderForAdapterPosition(i);
                          if (vh != null)
                              vh.itemView.findViewById(R.id.root_layer).performClick();
  
                      }
                  }
              }
          }
      }
  </code></pre>
  
  <p>but when user scrolls down, upper items will be null and <code>vh</code> goes null and I can't collapse invisible item, Is there any way to handle this issue?</p>