A collection of fixes for FastScroller and RecyclerView, based on:
what to put in gradle file (use latest release version there) :
https://jitpack.io/#AndroidDeveloperLB/FastScrollerAndRecyclerViewFixes
What it fixes:
Sample usage, of using both fast-scroller
val thumbDrawable = ContextCompat.getDrawable(this, R.drawable.thumb_drawable) as StateListDrawable
val lineDrawable = ContextCompat.getDrawable(this, R.drawable.line_drawable)!!
val thickness = resources.getDimensionPixelSize(R.dimen.fastScrollThickness)
val minRange = resources.getDimensionPixelSize(R.dimen.fastScrollMinimumRange)
val margin = resources.getDimensionPixelSize(R.dimen.fastScrollMargin)
val minThumbSize = resources.getDimensionPixelSize(R.dimen.fastScrollMinThumbSize)
FastScrollerEx(recyclerView, thumbDrawable, lineDrawable,
thumbDrawable, lineDrawable, thickness, minRange, margin, true, minThumbSize)
recyclerView.addItemDecoration(BottomOffsetDecoration(
resources.getDimensionPixelSize(R.dimen.bottom_list_padding), BottomOffsetDecoration.LayoutManagerType.GRID_LAYOUT_MANAGER)
)