OnTouchEvent 在触摸屏幕时做出多次反应

OnTouchEvent reacts multiple while touching the screen

我遇到了问题,onTouchEvent 会对手指停留在屏幕上和移动手指做出反应。那不是我的目标。我希望 OnTouchEvent 仅在我点击屏幕时做出反应,此后 OnTouchEvent 应自行重新激活,用户必须再次点击。

谁能解决我的问题?我的意思是我的计时器有点棘手,因为我从不离开方法 OnTouchEvent。

public boolean onTouchEvent(MotionEvent me){
    if(!started){
        started = true;
        taptostart.setVisibility(View.GONE);
        expla.setVisibility(View.GONE);
        //start the timer
        timer.schedule(new TimerTask() {
            @Override
            public void run() {
                handler.post(new Runnable() {
                    @Override
                    public void run() {
                        changePos();
                    }
                });
            }
        }, 0, 20);
    }else{
        activateHo();
    }
    return false;
}
public boolean onTouchEvent(MotionEvent me){
    if(me.getAction() == MotionEvent.ACTION_DOWN){
       //Do what you want here, when the view is touched
    }
return false;
}