package com.danding.yang800.General;

import android.graphics.Rect;
import android.support.v7.widget.RecyclerView;
import android.view.View;

/**
 * Created by Administrator on 2017/6/27.
 */
public class DocumentSpaceItemDecoration extends RecyclerView.ItemDecoration {
    int space;

    public DocumentSpaceItemDecoration(int space) {
        this.space = space;
    }

    public void getItemOffsets(Rect outRect, View view,
                               RecyclerView parent, RecyclerView.State state) {
        outRect.left = space;
        outRect.bottom = space;

    }
}
