private boolean isViewCreateByAdapter(RecyclerView.ViewHolder viewHolder) {
        int type = viewHolder.getItemViewType();
        if (type == mAdapter.HEADER_VIEW || type == mAdapter.LOADING_VIEW
                || type == mAdapter.FOOTER_VIEW || type == mAdapter.EMPTY_VIEW) {
            return true;
        }
        return false;

    }
<p>Set the swipe movement direction.</p>
<p>The value should be ItemTouchHelper.START, ItemTouchHelper.END or their combination.</p>
You can combine them like ItemTouchHelper.START | ItemTouchHelper.END, it means that the item could swipe to both left or right.
@param swipeMoveFlags the swipe movement direction. Default value is ItemTouchHelper.END.
common/src/main/java/com/sxjs/common/base/baseadapter/callback/ItemDragAndSwipeCallback.java