Package 

Class FastScroller.Delegate


  • 
    public class FastScroller.Delegate
    
                        

    This class links the FastScroller to the RecyclerView.To use FastScroller in your existing adapter (Not FlexibleAdapter), follow the steps below:

    • In your layout, include @layout/fast_scroller after the RecyclerView.
    • Implement FastScroller.AdapterInterface in your adapter.
    • In your adapter, create a FastScroller.Delegate and call the delegate methods: {@code onAttachedToRecyclerView}, {@code onDetachedFromRecyclerView} and {@code setFastScroller}.
    • If {@code fastScrollerBubbleEnabled} is true, in your adapter, implement BubbleTextCreatorand add the logic to display the label in {@code onCreateBubbleText}.
    • In the fragment/activity call the adapter's {@code setFastScroller} after setting theRecyclerView's adapter.