package com.philisense.rdgo.util;

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

/**
 * Created by shaop on 2017/12/11.
 */
public class SpaceItemDecoration extends RecyclerView.ItemDecoration {
    int mSpace;

    @Override
    public void getItemOffsets(Rect outRect, View view, RecyclerView parent, RecyclerView.State state) {
        outRect.set(-0, -0, -0, -95);
//        outRect.set(0,0,0,0);
//        if (parent.getChildAdapterPosition(view) == 0) {
//
//        }
    }

    public SpaceItemDecoration(int space) {
        this.mSpace = space;
    }
}