lib-manipulation/src/main/java/com/nhaarman/listviewanimations/itemmanipulation/expandablelistitem/ExpandableListItemAdapter.java
public void toggle(final int position) {
        long itemId = getItemId(position);
        boolean isExpanded = mExpandedIds.contains(itemId);

        View contentParent = getContentParent(position);
        if (contentParent != null) {
            toggle(contentParent);
        }

        if (contentParent == null && isExpanded) {
            mExpandedIds.remove(itemId);
        } else if (contentParent == null) {
            mExpandedIds.add(itemId);
        }
    }
public void toggle(final int position) {
        long itemId = getItemId(position);
        boolean isExpanded = mExpandedIds.contains(itemId);

        View contentParent = getContentParent(position);
        if (contentParent != null) {
            toggle(contentParent);
        }

        if (contentParent == null && isExpanded) {
            mExpandedIds.remove(itemId);
        } else if (contentParent == null) {
            mExpandedIds.add(itemId);
        }
    }
public void toggle ( final int position ) { long itemId = getItemId ( position ) ; boolean isExpanded = mExpandedIds . contains ( itemId ) ; View contentParent = getContentParent ( position ) ; if ( contentParent != null ) { toggle ( contentParent ) ; } if ( contentParent == null && isExpanded ) { mExpandedIds . remove ( itemId ) ; } else if ( contentParent == null ) { mExpandedIds . add ( itemId ) ; } }
Toggle the {@link android.view.View} at given position, ignores header or footer Views.

@param position the position of the view to toggle.
Toggle the { @link android . view . View } at given position ignores header or footer Views .