public class BottomanSpaceItemDecoration extends RecyclerView.ItemDecoration {
private int mSpace;
private int mPosition;
private Paint paint;
private CircleSquareRvAdapter mRvAdapter;
public BottomanSpaceItemDecoration(CircleSquareRvAdapter adapter, int space, int position) {
mRvAdapter = adapter;
this.mSpace = space;
mPosition = position;
paint = new Paint();
paint.setColor(MainApplication.getInstance().getColor(R.color.red));
}
/**
* Retrieve any offsets for the given item. Each field of <code>outRect</code> specifies
* the number of pixels that the item view should be inset by, similar to padding or margin.
* The default implementation sets the bounds of outRect to 0 and returns.
* <p>
* <p>
* If this ItemDecoration does not affect the positioning of item views, it should set
* all four fields of <code&g
recyclerview 行间距
最新推荐文章于 2024-06-07 22:34:55 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)