类 SimpleViewHelper
java.lang.Object
me.zhanghai.android.fastscroll.SimpleViewHelper
- 所有已实现的接口:
FastScroller.ViewHelper
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidaddOnPreDrawListener(Runnable listener) voidaddOnScrollChangedListener(Runnable listener) voidaddOnTouchEventListener(Predicate<MotionEvent> listener) protected abstract intprotected abstract intvoidintintprotected abstract intbooleanonInterceptTouchEvent(MotionEvent event) voidonScrollChanged(int left, int top, int oldLeft, int oldTop) booleanonTouchEvent(MotionEvent event) voidscrollTo(int offset) protected abstract voidscrollTo(int x, int y) protected abstract voidprotected abstract booleanprotected abstract voidsuperOnScrollChanged(int left, int top, int oldLeft, int oldTop) protected abstract booleansuperOnTouchEvent(MotionEvent event) 从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 me.zhanghai.android.fastscroll.FastScroller.ViewHelper
getPopupText
-
构造器详细资料
-
SimpleViewHelper
public SimpleViewHelper()
-
-
方法详细资料
-
addOnPreDrawListener
- 指定者:
addOnPreDrawListener在接口中FastScroller.ViewHelper
-
draw
-
addOnScrollChangedListener
-
onScrollChanged
public void onScrollChanged(int left, int top, int oldLeft, int oldTop) -
addOnTouchEventListener
-
onInterceptTouchEvent
-
onTouchEvent
-
getScrollRange
public int getScrollRange()- 指定者:
getScrollRange在接口中FastScroller.ViewHelper
-
getScrollOffset
public int getScrollOffset()- 指定者:
getScrollOffset在接口中FastScroller.ViewHelper
-
scrollTo
public void scrollTo(int offset) - 指定者:
scrollTo在接口中FastScroller.ViewHelper
-
superDraw
-
superOnScrollChanged
protected abstract void superOnScrollChanged(int left, int top, int oldLeft, int oldTop) -
superOnInterceptTouchEvent
-
superOnTouchEvent
-
computeVerticalScrollRange
protected abstract int computeVerticalScrollRange() -
computeVerticalScrollOffset
protected abstract int computeVerticalScrollOffset() -
getScrollX
protected abstract int getScrollX() -
scrollTo
protected abstract void scrollTo(int x, int y)
-