code: protected void recycleAllFrom(@Nullable ViewGroup layout) {
          if (!useRecycler || layout == null) {
              return;
          }
  
          for (int i = 0, size = layout.getChildCount(); i < size; i++) {
              final View view = layout.getChildAt(i);
              final int viewType = (Integer) view.getTag(TAG_TYPE_ID);
              final Queue<View> cache = getViewsCache(viewType);
              if (cache != null) {
                  cache.offer(view);
                  onRecycleView(view);
              }
          }
  
          layout.removeAllViews();
      }
docs: Removing and recycling all child views from given view group