@Override
    public void requestLayout() {
        if (!mInLayout) {
            super.requestLayout();
        }
    }
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