添加文档

This commit is contained in:
yutou 2022-08-23 16:29:06 +08:00
parent d7d81bc5a7
commit 7cccc48b80

View File

@ -1,4 +1,3 @@
package com.yunbao.live.custom;
import android.graphics.Canvas; import android.graphics.Canvas;
import android.graphics.Color; import android.graphics.Color;
@ -12,8 +11,10 @@ import android.graphics.Xfermode;
import androidx.recyclerview.widget.RecyclerView; import androidx.recyclerview.widget.RecyclerView;
/** /**
* Created by cxf on 2018/1/27.
* RecyclerView右側渐变的itemDecoration * RecyclerView右側渐变的itemDecoration
* 渐变参考文档https://blog.csdn.net/u010126792/article/details/85237085
* 半透明则是由0黑的渐变效果
* 使用方法 RecyclerView.addItemDecoration(new RightGradual());
*/ */
public class RightGradual extends RecyclerView.ItemDecoration { public class RightGradual extends RecyclerView.ItemDecoration {