¾ÛÅøÁî
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 Á¶È¸ : 5048
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°Ç
¹øÈ£ Á¦¸ñ ±Û¾´ÀÌ ³¯Â¥ Á¶È¸
223  ¾Èµå·ÎÀ̵å GridView¿¡ À̹ÌÁö ºÒ·¯¿À±â +1 ÃÖ¼öÀÎ 04-16 7063
222  Ä«Ä«¿À¸µÅ© API¸¦ ÀÌ¿ëÇØ Ä£±¸¸¦ ÃÊ´ëÇÒ¶§ ? ÀÌÀ翵 11-15 6921
221  ¾Èµå·ÎÀÌµå ¾Û ½É»ç±â°£ÀÌ ¿Ö ÀÌ·¸°Ô ±æ¾î Á³³ª¿ä? ÀüºÀ±â 03-19 7214
220  ºÎ»ê ¾Èµå·ÎÀÌµå ½ºÅ͵ð ¸ðÁý °ü·ÃÇÏ¿© ¹®Àǵ帳´Ï´Ù +2 ÀÌÀç¿ø 02-26 6247
219  ºÎ»ê ½ºÅ͵ð...14±â´Â ¾ðÁ¦ÂêÀ½ ¸ðÁý Çϳª¿ä?? +1 ±è¼ÒÇö 02-01 3892
218  2014³â °æ³²,°æºÏ Áö¹æ¿¡¼­ ÇÏ´Â ¾Û °³¹ß°ú ¾Û µðÀÚÀÎ ±³À° °úÁ¤ Á» ¾Ë·ÁÁÖ¼¼¿ä À¯ÇöÀç 01-02 3762
217  ¾Èµå·ÎÀÌµå ½ºÅ͵𿡠°¡ÀÔÇÏ°í ½ÍÀº ÇлýÀÔ´Ï´Ù. ÀÌÀåÈ£ 12-31 3783
216  ¾Èµå·ÎÀ̵å ÇÁ·¹ÀÓ¿öÅ© °ü·ÃÇÏ¿© Áú¹®µå¸³´Ï´Ù. Çѱ¤Èñ 10-01 3900
215  ¾È³çÇϼ¼¿ä ^^ À̹ÌÁö ÇÊÅÍ È¿°ú °ü·Ã Áú¹®µå¸³´Ï´Ù. ±Çöȣ 07-10 4427
214     ¾È³çÇϼ¼¿ä ^^ À̹ÌÁö ÇÊÅÍ È¿°ú °ü·Ã Áú¹®µå¸³´Ï´Ù. ±èº´ÁÖ 08-02 5104
213  ½º¸¶Æ®Æù µð¹ÙÀ̽º Á¦¾î¹æ¹ý.. Á¤¹Î½Ä 06-20 3674
212     ½º¸¶Æ®Æù µð¹ÙÀ̽º Á¦¾î¹æ¹ý.. ±èº´ÁÖ 08-02 5116
211  http ÆÄ½Ì °í¼ö´ÔµéÀÇ Á¶¾ðÀÌ ÇÊ¿äÇØ¿ä !! ¤Ð¤Ð 俵Áø 06-10 3854
210     http ÆÄ½Ì °í¼ö´ÔµéÀÇ Á¶¾ðÀÌ ÇÊ¿äÇØ¿ä !! ¤Ð¤Ð ±Ç´ë°Ç 06-20 4745
209        http ÆÄ½Ì °í¼ö´ÔµéÀÇ Á¶¾ðÀÌ ÇÊ¿äÇØ¿ä !! ¤Ð¤Ð ±èº´ÁÖ 08-02 4840
208  ±¸±Û Ç÷¹ÀÌ ¸¶ÄÏ¿¡ µî·ÏµÈ ¾Û ¼³¸í¹® ¼öÁ¤½Ã ¾Û ·©Å·¿¡ ¿µÇâÀÌ Àִٴµ¥¿ä? ÀÌÀ翵 05-29 4985
207  ÀÌŬ¸³½º¿¡¼­ ¾Û°³¹ß½Ã index.html ¼Ò½º ¹Ù·Î º¸´Â ¹æ¹ýÀÌ ¾î¶»°Ô µÇ³ª¿ä? ±èÀϼö 05-01 4085
206  ¾×ƼºñƼ°£ ¼ÒÄÏ¿¬°áÀ¯Áö Áú¹®ÀÌ¿ä +2 ¼Ûº¸±Ù 01-29 10079
205  ¾Èµå·ÎÀ̵å 1pxÀ» mm·Î ȯ»êÇÏ´Â ¹®Á¦ÀÔ´Ï´Ù +1 ÀÌÅÂÇü 12-18 5573
204  À¯·á¾ÛÀ» ¿Ã·È´Âµ¥ °áÁ¦¿¡¼­ ¿¡·¯°¡ ³ª¼­ ¾Æ¹«µµ ¾È¹Þ¾Ò³×¿ä. ¤Ì¤Ì ÀÌ°Å ¿Ö ÀÌ·¸ÁÒ?? µµ¿ÍÁÖ¼¼¿ä. ¤Ð¤Ð +1 ±èÅÂÇü 12-13 4861
 1  2  3  4  5  6  7  8  9  10  11  12  
 
 
 
Copyright ¨Ï wwwold.androidstudy.co.kr. All rights reserved.