AlphabetSideBar
AlphabetSideBar.
Since
0.5.4
Constructors
Types
Interface definition for a callback to be invoked when the indicator letters is updated.
Properties
The color-int of alphabet sidebar, bezier curve and bubble.
The color-int of current indicator letter in the alphabet sidebar.
The color-int of letter in the alphabet sidebar.
The size of letter in the alphabet sidebar.
The color-int of letter in the bubble.
The size of letter in the bubble.
The index of the current indicator letter in mAlphabet.
Used to save the index of previous indicator letter in mAlphabet. Prevent mLetterListener from being called repeatedly.
Functions
Returns the difference between the distance from the first bubble to the top of the view and the distance from the sidebar to the top of the view
Returns the radius of the top and bottom semicircles of the sidebar.
Return the distance length between 50% of the letter height which is in the alphabet sidebar and the baseline. Used to ensure that the drawn text is in the center.
Return the height of the letter in the alphabet sidebar.
Get the width of alphabet side bar.
Return the distance length between 50% of the letter height which is in the bubble and the baseline. Used to ensure that the drawn text is in the center.
Get index of current indicator letter in mAlphabet.
Set favorite icon string.
Set target index of the alphabet by targetIndex. If mLetterListener is not null, it will also call LetterListener.onIndicatorLetterTargetUpdate.
Register a LetterListener for the AlphabetSideBar.
Set mLocation.