类 PagingItemDecoration
- java.lang.Object
-
- androidx.recyclerview.widget.RecyclerView.ItemDecoration
-
- io.agora.chat.uikit.widget.chatextend.PagingItemDecoration
-
public class PagingItemDecoration extends androidx.recyclerview.widget.RecyclerView.ItemDecorationitem decoration Refer to:https://blog.csdn.net/Y_sunny_U/article/details/89500464
-
-
构造器概要
构造器 构造器 说明 PagingItemDecoration(android.content.Context context, PageDecorationLastJudge pageDecorationLastJudge)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voiddrawHorizontal(android.graphics.Canvas c, androidx.recyclerview.widget.RecyclerView parent)voiddrawVertical(android.graphics.Canvas c, androidx.recyclerview.widget.RecyclerView parent)voidgetItemOffsets(android.graphics.Rect outRect, android.view.View view, androidx.recyclerview.widget.RecyclerView parent, androidx.recyclerview.widget.RecyclerView.State state)voidonDraw(android.graphics.Canvas c, androidx.recyclerview.widget.RecyclerView parent, androidx.recyclerview.widget.RecyclerView.State state)voidsetDrawable(android.graphics.drawable.Drawable drawable)Sets theDrawablefor this divider.
-
-
-
构造器详细资料
-
PagingItemDecoration
public PagingItemDecoration(android.content.Context context, PageDecorationLastJudge pageDecorationLastJudge)
-
-
方法详细资料
-
setDrawable
public void setDrawable(@NonNull android.graphics.drawable.Drawable drawable)Sets theDrawablefor this divider.- 参数:
drawable- Drawable that should be used as a divider.
-
onDraw
public void onDraw(android.graphics.Canvas c, androidx.recyclerview.widget.RecyclerView parent, androidx.recyclerview.widget.RecyclerView.State state)- 覆盖:
onDraw在类中androidx.recyclerview.widget.RecyclerView.ItemDecoration
-
drawHorizontal
public void drawHorizontal(android.graphics.Canvas c, androidx.recyclerview.widget.RecyclerView parent)
-
drawVertical
public void drawVertical(android.graphics.Canvas c, androidx.recyclerview.widget.RecyclerView parent)
-
getItemOffsets
public void getItemOffsets(android.graphics.Rect outRect, android.view.View view, androidx.recyclerview.widget.RecyclerView parent, androidx.recyclerview.widget.RecyclerView.State state)- 覆盖:
getItemOffsets在类中androidx.recyclerview.widget.RecyclerView.ItemDecoration
-
-