private void layoutChildren(int startingIndex, int adapterCount){
        while (startingIndex < Math.min(adapterCount, MAX_VISIBLE) ) {
            View newUnderChild = mAdapter.getView(startingIndex, null, this);
            if (newUnderChild.getVisibility() != GONE) {
                makeAndAddView(newUnderChild);
                LAST_OBJECT_IN_STACK = startingIndex;
            }
            startingIndex++;
        }
    }
A shortcut method to set both the listeners and the adapter.

@param context The activity context which extends onFlingListener, OnItemClickListener or both
@param mAdapter The adapter you have to set.
library/src/main/java/com/lorentzos/flingswipe/SwipeFlingAdapterView.java