public abstract class ScrollerViewProvider
extends java.lang.Object
Views and their behaviors for the handle and bubble of the fastscroller.| Constructor and Description |
|---|
ScrollerViewProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected ViewBehavior |
getBubbleBehavior() |
abstract int |
getBubbleOffset()
To offset the position of the bubble relative to the handle.
|
protected android.content.Context |
getContext() |
protected ViewBehavior |
getHandleBehavior() |
protected FastScroller |
getScroller() |
void |
onHandleGrabbed() |
void |
onHandleReleased() |
void |
onScrollFinished() |
void |
onScrollStarted() |
protected abstract ViewBehavior |
provideBubbleBehavior() |
abstract android.widget.TextView |
provideBubbleTextView()
Bubble view has to provide a
TextView that will show the index title. |
abstract android.view.View |
provideBubbleView(android.view.ViewGroup container) |
protected abstract ViewBehavior |
provideHandleBehavior() |
abstract android.view.View |
provideHandleView(android.view.ViewGroup container) |
void |
setFastScroller(FastScroller scroller) |
public void setFastScroller(FastScroller scroller)
protected android.content.Context getContext()
protected FastScroller getScroller()
public abstract android.view.View provideHandleView(android.view.ViewGroup container)
container - The container FastScroller for the view to inflate properly.FastScroller used as a handle.public abstract android.view.View provideBubbleView(android.view.ViewGroup container)
container - The container FastScroller for the view to inflate properly.FastScroller used as a bubble.public abstract android.widget.TextView provideBubbleTextView()
TextView that will show the index title.TextView that will hold the index title.public abstract int getBubbleOffset()
DefaultScrollerViewProvider
the sharp corner of the bubble is aligned with the center of the handle.@Nullable protected abstract ViewBehavior provideHandleBehavior()
@Nullable protected abstract ViewBehavior provideBubbleBehavior()
protected ViewBehavior getHandleBehavior()
protected ViewBehavior getBubbleBehavior()
public void onHandleGrabbed()
public void onHandleReleased()
public void onScrollStarted()
public void onScrollFinished()