public class IndexFastScrollRecyclerSection
extends RecyclerView.AdapterDataObserver
| Modifier and Type | Field and Description |
|---|---|
int |
mIndexBarStrokeWidth |
| Constructor and Description |
|---|
IndexFastScrollRecyclerSection(android.content.Context context,
IndexFastScrollRecyclerView recyclerView) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(float x,
float y) |
void |
draw(android.graphics.Canvas canvas) |
void |
onChanged() |
void |
onSizeChanged(int w,
int h,
int oldw,
int oldh) |
boolean |
onTouchEvent(android.view.MotionEvent ev) |
void |
setAdapter(RecyclerView.Adapter adapter) |
void |
setIndexBarColor(int color) |
void |
setIndexBarCornerRadius(int value) |
void |
setIndexbarHighLightTextColor(int color) |
void |
setIndexBarHighLightTextVisibility(boolean shown) |
void |
setIndexbarMargin(float value) |
void |
setIndexBarStrokeColor(int color) |
void |
setIndexBarStrokeVisibility(boolean shown) |
void |
setIndexBarStrokeWidth(int value) |
void |
setIndexBarTextColor(int color) |
void |
setIndexBarTransparentValue(float value) |
void |
setIndexBarVisibility(boolean shown) |
void |
setIndexbarWidth(float value) |
void |
setIndexTextSize(int value) |
void |
setPreviewColor(int color) |
void |
setPreviewPadding(int value) |
void |
setPreviewTextColor(int color) |
void |
setPreviewTextSize(int value) |
void |
setPreviewTransparentValue(float value) |
void |
setPreviewVisibility(boolean shown) |
void |
setTypeface(android.graphics.Typeface typeface) |
void |
updateSections() |
public IndexFastScrollRecyclerSection(android.content.Context context,
IndexFastScrollRecyclerView recyclerView)
public void draw(android.graphics.Canvas canvas)
public boolean onTouchEvent(android.view.MotionEvent ev)
public void onSizeChanged(int w,
int h,
int oldw,
int oldh)
public void setAdapter(RecyclerView.Adapter adapter)
public void onChanged()
public void updateSections()
public boolean contains(float x,
float y)
public void setIndexTextSize(int value)
value - int to set the text size of the index barpublic void setIndexbarWidth(float value)
value - float to set the width of the index barpublic void setIndexbarMargin(float value)
value - float to set the margin of the index barpublic void setPreviewPadding(int value)
value - int to set preview paddingpublic void setIndexBarCornerRadius(int value)
value - int to set the radius of the index barpublic void setIndexBarTransparentValue(float value)
value - float to set the transparency of the color for index barpublic void setTypeface(android.graphics.Typeface typeface)
typeface - Typeface to set the typeface of the preview & the index barpublic void setIndexBarVisibility(boolean shown)
shown - boolean to show or hide the index barpublic void setIndexBarStrokeVisibility(boolean shown)
shown - boolean to show or hide the index barpublic void setPreviewVisibility(boolean shown)
shown - boolean to show or hide the preview boxpublic void setIndexBarStrokeWidth(int value)
value - int to set the text size of the preview boxpublic void setPreviewTextSize(int value)
value - int to set the text size of the preview boxpublic void setPreviewColor(int color)
color - The color for the preview boxpublic void setPreviewTextColor(int color)
color - The text color for the preview boxpublic void setPreviewTransparentValue(float value)
value - float to set the transparency value of the preview boxpublic void setIndexBarColor(int color)
color - The color for the scroll trackpublic void setIndexBarTextColor(int color)
color - The text color for the index barpublic void setIndexBarStrokeColor(int color)
color - The text color for the index barpublic void setIndexbarHighLightTextColor(int color)
color - The text color for the index barpublic void setIndexBarHighLightTextVisibility(boolean shown)
shown - boolean to show or hide the index bar