public class

ScrollableThumbnailBarLayoutManager

extends LinearLayoutManager
java.lang.Object
   ↳ androidx.recyclerview.widget.RecyclerView.LayoutManager
     ↳ androidx.recyclerview.widget.LinearLayoutManager
       ↳ com.pspdfkit.ui.thumbnail.ScrollableThumbnailBarLayoutManager

Class Overview

Layout manager for scrollable thumbnail bar.

Summary

[Expand]
Inherited Constants
From class androidx.recyclerview.widget.LinearLayoutManager
Public Constructors
ScrollableThumbnailBarLayoutManager(Context context)
ScrollableThumbnailBarLayoutManager(Context context, int orientation, boolean reverseLayout)
ScrollableThumbnailBarLayoutManager(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)
Public Methods
void smartScrollToPosition(int position, int viewWidth, RecyclerView recyclerView, boolean introduceDoublePageSkew)
Scrolls the adapter to the selected position introducing an offset for placing it in the middle, and checks the gap for for fast-scrolling if is double the recycler view width.
void smoothScrollToPosition(RecyclerView recyclerView, RecyclerView.State state, int position)
boolean supportsPredictiveItemAnimations()
[Expand]
Inherited Methods
From class androidx.recyclerview.widget.LinearLayoutManager
From class androidx.recyclerview.widget.RecyclerView.LayoutManager
From class java.lang.Object
From interface androidx.recyclerview.widget.ItemTouchHelper.ViewDropHandler
From interface androidx.recyclerview.widget.RecyclerView.SmoothScroller.ScrollVectorProvider

Public Constructors

public ScrollableThumbnailBarLayoutManager (Context context)

public ScrollableThumbnailBarLayoutManager (Context context, int orientation, boolean reverseLayout)

public ScrollableThumbnailBarLayoutManager (Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)

Public Methods

public void smartScrollToPosition (int position, int viewWidth, RecyclerView recyclerView, boolean introduceDoublePageSkew)

Scrolls the adapter to the selected position introducing an offset for placing it in the middle, and checks the gap for for fast-scrolling if is double the recycler view width.

Parameters
position Position to scroll.
viewWidth Selected view width.
recyclerView Recycler view on which the scroll will be performed.
introduceDoublePageSkew Extra room for centering the view when in double page mode.

public void smoothScrollToPosition (RecyclerView recyclerView, RecyclerView.State state, int position)

public boolean supportsPredictiveItemAnimations ()