List of usage examples for android.widget FastScroller FastScroller
@UnsupportedAppUsage public FastScroller(AbsListView listView, int styleResId)
From source file:com.l4digital.fastscroll.FastScrollRecyclerView.java
private void layout(Context context, AttributeSet attrs) { mFastScroller = new FastScroller(context, attrs); }
From source file:com.appunite.list.AbsListView.java
/** * Enables fast scrolling by letting the user quickly scroll through lists by * dragging the fast scroll thumb. The adapter attached to the list may want * to implement {@link android.widget.SectionIndexer} if it wishes to display alphabet preview and * jump between sections of the list./*ww w .j a va 2 s. co m*/ * @see android.widget.SectionIndexer * @see #isFastScrollEnabled() * @param enabled whether or not to enable fast scrolling */ public void setFastScrollEnabled(boolean enabled) { mFastScrollEnabled = enabled; if (enabled) { if (mFastScroller == null) { mFastScroller = new FastScroller(getContext(), this); } } else { if (mFastScroller != null) { mFastScroller.stop(); mFastScroller = null; } } }