SeslArrayIndexer
A helper class for SeslIndexScrollView that alphabetically sorts and sections a list of items.
This class is designed to work with a List of String objects. It provides the necessary methods for the SeslIndexScrollView to display an indexed scrollbar and allow users to quickly navigate through the list.
Usage:
List<String> myData = new ArrayList<>();
// Populate myData with string items
CharSequence indexCharacters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ#"; // Or your custom index characters
SeslArrayIndexer arrayIndexer = new SeslArrayIndexer(myData, indexCharacters);
// Pass the arrayIndexer to your SeslIndexScrollView or its adapter
Content copied to clipboard