/** * expand the item and all its subItems * * @param position position of the item, which includes the header layout count. * @param init whether you are initializing the recyclerView or not. * if <strong>true</strong>, it won't notify recyclerView to redraw UI. * @return the number of items that have been added to the adapter. */ public int expandAll(int position, boolean init) { return expandAll(position, true, !init); }