类 WheelScroller
- java.lang.Object
-
- com.jzxiang.pickerview.wheel.WheelScroller
-
public class WheelScroller extends Object
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static interfaceWheelScroller.ScrollingListener
-
字段概要
字段 修饰符和类型 字段 说明 static intMIN_DELTA_FOR_SCROLLING
-
构造器概要
构造器 构造器 说明 WheelScroller(Context context, WheelScroller.ScrollingListener listener)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleanonTouchEvent(MotionEvent event)Handles Touch eventvoidscroll(int distance, int time)voidsetInterpolator(Interpolator interpolator)voidstopScrolling()Stops scrolling
-
-
-
字段详细资料
-
MIN_DELTA_FOR_SCROLLING
public static final int MIN_DELTA_FOR_SCROLLING
- 另请参阅:
- 常量字段值
-
-
构造器详细资料
-
WheelScroller
public WheelScroller(Context context, WheelScroller.ScrollingListener listener)
-
-
方法详细资料
-
setInterpolator
public void setInterpolator(Interpolator interpolator)
-
scroll
public void scroll(int distance, int time)
-
stopScrolling
public void stopScrolling()
Stops scrolling
-
onTouchEvent
public boolean onTouchEvent(MotionEvent event)
Handles Touch event- 参数:
event- the motion event- 返回:
-
-