@Override
public boolean onTouchEvent(MotionEvent event, MapView mapView)
{
// Touch 한 곳의 X 좌표
double xPoint = (double)event.getX();
// Touch 한 곳의 Y 좌표
double yPoint = (double)event.getY();
// Touch Action 값
int actionValue = event.getAction();
switch (actionValue)
{
// Touch 했을 때
case MotionEvent.ACTION_DOWN :
break;
// Touch 땟을 때
case MotionEvent.ACTION_UP :
break;
// Drag
case MotionEvent.ACTION_MOVE :
break;
}
return super.onTouchEvent(event, mapView);
}
'About Programing > 05. Android' 카테고리의 다른 글
| Activity Class나 View Class를 상속 받지 않는 Class의 startActivity() 함수 호출 (0) | 2011.01.04 |
|---|---|
| Activity 생명 주기 (1) | 2011.01.02 |
| Overlay를 사용하여 MapView 상의 지도위에 그리기 (0) | 2010.12.13 |
| Android Error [requires .class compatibility set to 5.0. Please fix project properties] (0) | 2010.12.09 |
| Android system 구축 및 설계 필기 (0) | 2010.11.22 |