• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

is the a TouchEvent that works like the MouseEvent?

 
Anton Sigurdsson
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry for bed English.

I was trying to find the TouchEvent for my android phone.
Like the MouseEvent, is their same thing like TouchEvent where i can select a cornets on the screen and make a costumed selectable surface?

MouseListener the same things go´s for the is the same thing like TouchListener out there for android?

is it on the list.

I'm sorry if this is not in approved place in the forum.
 
Tony Docherty
Bartender
Posts: 2965
59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've moved this to the Android forum for you.
 
Steve Luke
Bartender
Posts: 4181
22
IntelliJ IDE Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, the View class has an OnTouchListener which you can use with the View's setOnTouchListener() method. Note that the OnTouchListener is a bit more complicated to use than a normal MouseListener, because it tracks multi-finger touches and touch duration (to handle long touches, and gestures). Read up on the developer's network for more:

Basic use: http://developer.android.com/training/graphics/opengl/touch.html
Gestures and Multi-Touch: http://developer.android.com/training/gestures/index.html
 
Anton Sigurdsson
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic