SeslIndexScrollView

SeslIndexScrollView is a view that shows the scroll bar and the index bar on the right or left side of the screen. It is used to scroll the list to the position of the selected index. It can be used with RecyclerView.

The index bar can be shown in two modes: text mode and dot mode. In text mode, the index bar shows the text of the index. In dot mode, the index bar shows the dot of the index.

Constructors

Link copied to clipboard
constructor(@NonNull context: Context)
constructor(@NonNull context: Context, @Nullable attrs: AttributeSet)

Types

Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open fun attachToRecyclerView(@NotNull recyclerView: @NotNull RecyclerView)
Attaches the SeslIndexScrollView to the provided RecyclerView, by calling addOnScrollListener.
Link copied to clipboard
Link copied to clipboard
open fun enableScrollThumb(enabled: Boolean)
Link copied to clipboard
Link copied to clipboard
open fun setEffectBackgroundColor(effectBackgroundColor: Int)
Sets the background color of the index scroll preview.
Link copied to clipboard
open fun setEffectTextColor(effectTextColor: Int)
Sets the text color for the effect preview.
Link copied to clipboard
open fun setIndexBarBackgroundColor(bgColor: Int)
Sets the background color of the index bar.
Link copied to clipboard
Sets the background drawable for the index bar.
Link copied to clipboard
open fun setIndexBarGravity(gravity: Int)
Sets the gravity of the index bar.
Link copied to clipboard
open fun setIndexBarPressedTextColor(pressedTextColor: Int)
Sets the text color of the index bar when it is pressed.
Link copied to clipboard
open fun setIndexBarTextColor(textColor: Int)
Sets the text color of the index bar.
Link copied to clipboard
open fun setIndexBarTextMode(textMode: Boolean)
Sets the text mode for the index bar.
Link copied to clipboard
open fun setIndexer(@NonNull indexer: SeslArrayIndexer)
Sets the array indexer for the SeslIndexScrollView.
open fun setIndexer(@NonNull indexer: SeslCursorIndexer)
Sets the SeslCursorIndexer for this IndexScrollView.
Link copied to clipboard
open fun setIndexScrollMargin(topMargin: Int, bottomMargin: Int)
Sets the top and bottom margins for the index scroll background.
Link copied to clipboard
Link copied to clipboard
open fun setSimpleIndexScroll(indexBarChar: Array<String>, width: Int)
Sets the index bar to a simple scroll mode with a custom character array and width.