lib-manipulation/src/main/java/com/nhaarman/listviewanimations/itemmanipulation/animateaddition/AnimateAdditionAdapter.java
public void insert(final int index, @NonNull final T... items) {
        Pair<Integer, T>[] pairs = new Pair[items.length];
        for (int i = 0; i < items.length; i++) {
            pairs[i] = new Pair<>(index + i, items[i]);
        }
        insert(pairs);
    }
public void insert(final int index, @NonNull final T... items) {
        Pair<Integer, T>[] pairs = new Pair[items.length];
        for (int i = 0; i < items.length; i++) {
            pairs[i] = new Pair<>(index + i, items[i]);
        }
        insert(pairs);
    }
public void insert ( final int index , @ NonNull final T ... items ) { Pair < Integer , T > [ ] pairs = new Pair [ items . length ] ; for ( int i = 0 ; i < items . length ; i ++ ) { pairs [ i ] = new Pair <> ( index + i , items [ i ] ) ; } insert ( pairs ) ; }
Inserts items, starting at given index. Will show an entrance animation for the new items if the newly added items are visible.
Will also call {@link Insertable#add(int, Object)} of the root {@link android.widget.BaseAdapter}.

@param index the starting index the new items should be inserted at.
@param items the items to insert.
Inserts items starting at given index . Will show an entrance animation for the new items if the newly added items are visible . Will also call { @link Insertable#add ( int Object ) } of the root { @link android . widget . BaseAdapter } .