ScrollableThumbnailBarLayoutManager

Layout manager for scrollable thumbnail bar.

Constructors

Link copied to clipboard
constructor(@NonNull context: Context)
constructor(@NonNull context: Context, orientation: Int, reverseLayout: Boolean)
constructor(@NonNull context: Context, @Nullable attrs: AttributeSet, defStyleAttr: Int, defStyleRes: Int)

Functions

Link copied to clipboard
open fun smartScrollToPosition(position: Int, viewWidth: Int, @NonNull recyclerView: RecyclerView, introduceDoublePageSkew: Boolean)
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.
Link copied to clipboard
open fun smoothScrollToPosition(@NonNull recyclerView: RecyclerView, @NonNull state: RecyclerView.State, position: Int)