public class FastScroller
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
FastScroller.PopupPosition |
static interface |
FastScroller.PopupTextVerticalAlignmentMode |
| Constructor and Description |
|---|
FastScroller(android.content.Context context,
FastScrollRecyclerView recyclerView,
android.util.AttributeSet attrs) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
cancelAutoHide() |
void |
draw(android.graphics.Canvas canvas) |
void |
enableThumbInactiveColor(boolean enableInactiveColor) |
int |
getOffsetX() |
int |
getThumbHeight() |
int |
getWidth() |
void |
handleTouchEvent(android.view.MotionEvent ev,
int downX,
int downY,
int lastY,
OnFastScrollStateChangeListener stateChangeListener)
Handles the touch event and determines whether to show the fast scroller (or updates it if
it is already showing).
|
boolean |
isDragging() |
protected void |
postAutoHideDelayed() |
void |
setAutoHideDelay(int hideDelay) |
void |
setAutoHideEnabled(boolean autoHideEnabled) |
void |
setOffset(int x,
int y) |
void |
setOffsetX(int x) |
void |
setPopupBgColor(int color) |
void |
setPopupPosition(int popupPosition) |
void |
setPopupTextColor(int color) |
void |
setPopupTextSize(int size) |
void |
setPopupTypeface(android.graphics.Typeface typeface) |
void |
setThumbColor(int color) |
void |
setThumbInactiveColor(boolean thumbInactiveColor)
Deprecated.
|
void |
setThumbInactiveColor(int color) |
void |
setThumbPosition(int x,
int y) |
void |
setTrackColor(int color) |
void |
show() |
public FastScroller(android.content.Context context,
FastScrollRecyclerView recyclerView,
android.util.AttributeSet attrs)
public int getThumbHeight()
public int getWidth()
public boolean isDragging()
public void handleTouchEvent(android.view.MotionEvent ev,
int downX,
int downY,
int lastY,
OnFastScrollStateChangeListener stateChangeListener)
public void draw(android.graphics.Canvas canvas)
public void setThumbPosition(int x,
int y)
public void setOffset(int x,
int y)
public void setOffsetX(int x)
public int getOffsetX()
public void show()
protected void postAutoHideDelayed()
protected void cancelAutoHide()
public void setThumbColor(int color)
public void setTrackColor(int color)
public void setPopupBgColor(int color)
public void setPopupTextColor(int color)
public void setPopupTypeface(android.graphics.Typeface typeface)
public void setPopupTextSize(int size)
public void setAutoHideDelay(int hideDelay)
public void setAutoHideEnabled(boolean autoHideEnabled)
public void setPopupPosition(int popupPosition)
public void setThumbInactiveColor(int color)
public void enableThumbInactiveColor(boolean enableInactiveColor)
@Deprecated public void setThumbInactiveColor(boolean thumbInactiveColor)