private void onActionUp(MotionEvent event){
  if (isDown) {
    this.startX=0F;
    this.startY=0F;
    this.isDown=false;
  }
}

private void onActionUp ( MotionEvent event ) { if ( isDown ) { this . startX = 0F ; this . startY = 0F ; this . isDown = false ; } }
this method defines processes on motionevent . action_down
