private boolean hasSubItems(IExpandable item) {
        List list = item.getSubItems();
        return list != null && list.size() > 0;
    }
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.
common/src/main/java/com/sxjs/common/base/baseadapter/BaseQuickAdapter.java