¾ÛÅøÁî
46.¢½.168.138
46.¢½.168.129
46.¢½.168.161
46.¢½.168.136
46.¢½.168.145
46.¢½.168.162
46.¢½.168.144
46.¢½.168.140
115.¢½.135.198
46.¢½.168.139
 
°Ô½Ã¹° 223°Ç
   
¸ÖƼÅÍÄ¡°ªÀ» ¹Þ¾Æ¿À·Á°í Çϴµ¥..
±Û¾´ÀÌ : À¯ÀçÈ«                   ³¯Â¥ : 2011-05-26 (¸ñ) 16:14 Á¶È¸ : 5047
ACTION_MOVE À̺¥Æ®¿¡¼­
¸ÖƼÅÍÄ¡¸¦ ÇÏÁö¾Ê°í
½Ì±Û ÅÍÄ¡¸¸ Çصµ ¸ÖƼÅÍÄ¡°ªÀÌ ³ª¿À´Â°¡ Çϸé
 
¸ÖƼÅÍÄ¡¸¦ ÇÏ¿´À»¶§
ACTION_UP °ú ACTION_POINTER_1_UP À̺¥Æ®¿¡¼­´Â
µÎ°³´Ù °°Àº°ªÀÌ ¹ÝȯµË´Ï´Ù..
 
ÄÚµå»ó¿¡ ¹®Á¦°¡ ÀÖ³ª¿ä?
¼Ò½º Ã·ºÎÇÕ´Ï´Ù.
 
------------------------------------------------------------------------------------------
public boolean onTouchEvent(MotionEvent event){

  this.m_pointerIndex = event.findPointerIndex(1);
  int act = event.getAction();
 
switch(act & MotionEvent.ACTION_MASK){
  case MotionEvent.ACTION_DOWN: //ù¹ø° ¼Õ°¡¶ô ÅÍÄ¡
   Log.d("touch began1","x1 = " +(float)event.getX(0));
   Log.d("touch began1","x1 = " +(float)event.getY(0));
  
          
   break;
  
   
  case MotionEvent.ACTION_MOVE://ÅÍÄ¡ À̵¿
   
   Log.d("touch Move","x2 = " +(float)event.getX(0));
   Log.d("touch Move","y2 = " +(float)event.getY(0));
   Log.d("touch Move","x2 = " +(float)event.getX(1));
   Log.d("touch Move","y2 = " +(float)event.getY(1));
      
      
   break;
   
  case MotionEvent.ACTION_POINTER_1_DOWN://µÎ¹ø° ¼Õ°¡¶ô ÅÍÄ¡
   Log.d("touch began2","x2 = " +(float)event.getX(1));
   Log.d("touch began2","x2 = " +(float)event.getY(1));
   
   break;
   
 /* case MotionEvent.ACTION_POINTER_2_DOWN://¼¼¹ø° ¼Õ°¡¶ô ÅÍÄ¡ 
     
   break;
   */
  
  case MotionEvent.ACTION_POINTER_1_UP:
   Log.d("touch ended2","x2 = " +(float)event.getX(1));
   Log.d("touch ended2","y2 = " +(float)event.getY(1));
   
   break;
   
  case MotionEvent.ACTION_UP: // ù¹ø° ¼Õ°¡¶ôÀ» ¶¼¾úÀ» °æ¿ì
   Log.d("touch ended","x1 = " +(float)event.getX());
   Log.d("touch ended","y1 = " +(float)event.getY());   

   break;
 
           }
  return super.onTouchEvent(event);
 }
* ±ÛÀ» µî·ÏÇϽǶ§ ²À ÇÊ¿äÇÑ °æ¿ì°¡ ¾Æ´Ï¸é °³ÀÎÁ¤º¸¸¦ ³²±âÁö ¸¶¼¼¿ä ^^ (¿¬¶ôó,À̸ÞÀÏÁÖ¼Ò,Áֹεî·Ï¹øÈ£ µî)




À¯ÀçÈ« ´ÔÀÇ Q&A ÃÖ½Å±Û [´õº¸±â]


   

°Ô½Ã¹° 223°Ç
¹øÈ£ Á¦¸ñ ±Û¾´ÀÌ ³¯Â¥ Á¶È¸
63  °Ë»ö⸸µé±â +1 ÀåÁ¾·Ê 06-24 5818
62  ¿ÜºÎ ¸®¼Ò½º ÀνºÅç... °í¼ö´ÔµéÀÇ µµ¿òÀÌ Àý½ÇÇÕ´Ï´Ù.. +1 À¯ÀçÈ« 06-24 4665
61  ÀÚ¹Ù new¿Í static +4 À̽½±â 06-22 5196
60  3g, wifi µ¿½Ã¿¡ »ç¿ëÀÌ °¡´ÉÇÑ°¡¿ä? +7 ºÎÁØÇÊ 06-22 5107
59  ÀÌŬ¸³½º ¿¡¹Ä·¹ÀÌÅÍ °ü·Ã Áú¹® +2 ±è¼º±¹ 06-20 2893
58  ÀÌŬ¸³½º ADT Ç÷¯±×ÀÎ ¼³Ä¡½Ã ¿À·ù +6 ¹ÚÇü¼± 06-16 4790
57  Ãʺ¸Áú¹® +1 À±Á¤¹ü 06-16 4239
56     Çѹø ´õ ¿©ÂÞ¾î º¾´Ï´Ù.. +2 À±Á¤¹ü 06-20 4278
55  ÇÁ¸®ºä¿¡ ¿Âµå·Î¿ì½Ã ´À¸² ¹®Á¦... ºÎŹµå·Á¿ä +2 ±èÁ¤Àº 06-07 10186
54  ¾Èµå·ÎÀÌµå ¹é±×¶ó¿îµå¿Í Æ÷±×¶ó¿îµå ¹®ÀÇ. +6 ±Ç´ë°Ç 05-29 6544
53  ¾Èµå·ÎÀ̵å,jsp,javascrpit...±Ã±ÝÁõ3°¡Áö +2 ÇÑÁ¾±Ô 05-28 5116
52  ¹ö½º ¾îÇà µî¿¡¼­ ´Ù¸¥»ç¶÷ÀÇ DB¿¡ Á¢±ÙÇؼ­ µ¥ÀÌŸ °¡Á®¿À´Â °Í. +2 ±èµ¿±Ô 05-27 4463
51  C2DM +1 ÃÖ°æȯ 05-26 4152
50  ¸ÖƼÅÍÄ¡°ªÀ» ¹Þ¾Æ¿À·Á°í Çϴµ¥.. À¯ÀçÈ« 05-26 5048
49  ÆĽ̰ü·Ã Áú¹®ÀÔ´Ï´Ù. +1 ÀÌ¿µÀ± 05-25 2933
48  ¾Èµå·ÎÀÌµå ¾îÇà °³¹ß.. ¾ÆÀÌÄÜÀÌ ±úÁö´Â Çö»ó.. +1 ±èµ¿¿µ 05-25 3694
47  ¸ð¹ÙÀÏ À¥¿¡¼­ À½¼º°Ë»ö... +2 Çã¹®Çà 05-23 4487
46  Çпø´Ù´Ï´Â °ÍÀÌ ³ªÀ»±î¿ä? +8 ±èÁ¤ºó 05-23 2890
45  ¿ÜºÎ Ä«¸Þ¶ó ¿µ»ó ½Ç½Ã°£ º¸¿©ÁÖ´Â ¹æ¹ý +1 Ȳ¿ë¼ö 05-20 3653
44  ¾Èµå·ÎÀÌµå °³¹ßÀÚ°¡ µÇ·Á¸é.. +4 ÀèÄÛ 04-28 5003
 1  2  3  4  5  6  7  8  9  10  11  12  
 
 
 
Copyright ¨Ï wwwold.androidstudy.co.kr. All rights reserved.