左晓为主开发手持机充值管理机
zuoxiao
6 天以前 f4fc58196bd246272bf755a767660c03f573cbc6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package com.contrarywind.listener;
 
import android.view.MotionEvent;
 
import com.contrarywind.view.WheelView;
 
 
/**
 * 手势监听
 */
public final class LoopViewGestureListener extends android.view.GestureDetector.SimpleOnGestureListener {
 
    private final WheelView wheelView;
 
 
    public LoopViewGestureListener(WheelView wheelView) {
        this.wheelView = wheelView;
    }
 
    @Override
    public final boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) {
        wheelView.scrollBy(velocityY);
        return true;
    }
}