类 PagingItemDecoration


  • public class PagingItemDecoration
    extends androidx.recyclerview.widget.RecyclerView.ItemDecoration
    item decoration Refer to:https://blog.csdn.net/Y_sunny_U/article/details/89500464
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      void drawHorizontal​(android.graphics.Canvas c, androidx.recyclerview.widget.RecyclerView parent)  
      void drawVertical​(android.graphics.Canvas c, androidx.recyclerview.widget.RecyclerView parent)  
      void getItemOffsets​(android.graphics.Rect outRect, android.view.View view, androidx.recyclerview.widget.RecyclerView parent, androidx.recyclerview.widget.RecyclerView.State state)  
      void onDraw​(android.graphics.Canvas c, androidx.recyclerview.widget.RecyclerView parent, androidx.recyclerview.widget.RecyclerView.State state)  
      void setDrawable​(android.graphics.drawable.Drawable drawable)
      Sets the Drawable for this divider.
      • 从类继承的方法 androidx.recyclerview.widget.RecyclerView.ItemDecoration

        getItemOffsets, onDraw, onDrawOver, onDrawOver
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • PagingItemDecoration

        public PagingItemDecoration​(android.content.Context context,
                                    PageDecorationLastJudge pageDecorationLastJudge)
    • 方法详细资料

      • setDrawable

        public void setDrawable​(@NonNull
                                android.graphics.drawable.Drawable drawable)
        Sets the Drawable for 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