/** * Collapse an expandable item that has been expanded.. * * @param position the position of the item, which includes the header layout count. * @return the number of subItems collapsed. */ public int collapse(@IntRange(from = 0) int position, boolean animate) { return collapse(position, animate, true); }
/** * Collapse an expandable item that has been expanded.. * * @param position the position of the item, which includes the header layout count. * @return the number of subItems collapsed. */ public int collapse(@IntRange(from = 0) int position) { return collapse(position, true, true); }