2013년 9월 23일 월요일

안드로이드 터치이벤트

public boolean onTouchEvent(MotionEvent event){ 
  touchX = (int) event.getX();
  touchY = (int) event.getY();
  touchAction = event.getAction();

  
if (touchAction == MotionEvent.ACTION_MOVE){
   // 드래그 처리
  }
  return true;
}

댓글 없음:

댓글 쓰기