Class RVPagerSnapFancyDecorator


  • public class RVPagerSnapFancyDecorator
    extends androidx.recyclerview.widget.RecyclerView.ItemDecoration
    • Constructor Detail

      • RVPagerSnapFancyDecorator

        public RVPagerSnapFancyDecorator​(Context context,
                                         int itemWidth,
                                         float itemPeekingPercent)
      • RVPagerSnapFancyDecorator

        public RVPagerSnapFancyDecorator​(int totalWidth,
                                         int itemWidth,
                                         float itemPeekingPercent)
    • Method Detail

      • getItemOffsets

        public void getItemOffsets​(@NonNull
                                   Rect outRect,
                                   @NonNull
                                   View view,
                                   @NonNull
                                   androidx.recyclerview.widget.RecyclerView recyclerView,
                                   @NonNull
                                   androidx.recyclerview.widget.RecyclerView.State state)
        Overrides:
        getItemOffsets in class androidx.recyclerview.widget.RecyclerView.ItemDecoration