Questions tagged [gesture-recognition]

Anything related to gesture recognition, i.e. the process of recognizing the gestures of a human user by a machine.

Anything related to gesture recognition, i.e. the process of recognizing the gestures of a human user by a machine.

561 questions
1134
votes
18 answers

Fling gesture detection on grid layout

I want to get fling gesture detection working in my Android application. What I have is a GridLayout that contains 9 ImageViews. The source can be found here: Romain Guys's Grid Layout. That file I take is from Romain Guy's Photostream application…
gav
  • 28,323
  • 22
  • 60
  • 89
463
votes
22 answers

Android: How to handle right to left swipe gestures

I want my app to recognize when a user swipes from right to left on the phone screen. How to do this?
endryha
  • 6,703
  • 7
  • 35
  • 58
370
votes
7 answers

UILongPressGestureRecognizer gets called twice when pressing down

I am detecting if the user has pressed down for 2 seconds: UILongPressGestureRecognizer *longPress = [[UILongPressGestureRecognizer alloc] initWithTarget:self …
194
votes
10 answers

Long press on UITableView

I would like to handle a long press on a UITableViewCell to print a "quick access menu". Did someone already do this? Particularly the gesture recognize on UITableView?
foOg
  • 3,076
  • 3
  • 17
  • 18
133
votes
3 answers

What is the difference between Pan and Swipe in iOS?

Sounds simple .. Hold the Trackpad, move the finger, release .. But somehow swipe is not being triggered (pan is triggered instead) UISwipeGestureRecognizer *swipeGesture = [[UISwipeGestureRecognizer alloc] initWithTarget:v…
James Raitsev
  • 82,013
  • 132
  • 311
  • 454
133
votes
14 answers

Draw on HTML5 Canvas using a mouse

I want to draw on a HTML Canvas using a mouse (for example, draw a signature, draw a name, ...) How would I go about implementing this?
MartinJoo
  • 2,394
  • 8
  • 29
  • 38
103
votes
7 answers

How to simulate a touch event in Android?

How to simulate a touch event with Android while giving the X and Y coordinates manually?
indira
  • 6,113
  • 16
  • 58
  • 78
95
votes
15 answers

In iOS, how to drag down to dismiss a modal?

A common way to dismiss a modal is to swipe down - How do we allows the user to drag the modal down, if it's far enough, the modal's dismissed, otherwise it animates back to the original position? For example, we can find this used on the Twitter…
foobar
  • 9,276
  • 14
  • 46
  • 63
55
votes
3 answers

How to programmatically trigger the touch event in android?

I would like to trigger a touch event like this: First the finger is touch down at the (0,50%) of the screen and slide to the (50%,50%) of the screen, and exit (move the finger off the screen) I have found some thing like this: MotionEvent event =…
user782104
  • 12,011
  • 51
  • 154
  • 289
34
votes
3 answers

How to detect Swipe Gesture in iOS?

In my iPhone app, I require to recognize the swipe gesture made by the user on the view. I want the swipe gestures to be recognized and perform a function on swipe. I need that the view should horizontally slide and show another view as a user makes…
Parth Bhatt
  • 19,085
  • 27
  • 131
  • 216
30
votes
6 answers

Android Two finger rotation

I am trying to implement two finger rotation in android however, it is not quite working as expected. The goal is to implement rotation like Google Earth does (two-finger rotating the image around the focal point). Currently my rotation listener…
paulot
  • 1,258
  • 2
  • 12
  • 24
28
votes
8 answers

Determine skeleton joints with a webcam (not Kinect)

I'm trying to determine skeleton joints (or at the very least to be able to track a single palm) using a regular webcam. I've looked all over the web and can't seem to find a way to do so. Every example I've found is using Kinect. I want to use a…
YePhIcK
  • 5,425
  • 2
  • 22
  • 47
25
votes
3 answers

Gesture problem: UISwipeGestureRecognizer + UISlider

Got a gesture related problem. I implemented UISwipeGestureRecognizer to get swipe left and right events and that is working fine. However the problem I'm facing is that the UISlider's I have in the same view are not playing nice. The sliding motion…
25
votes
3 answers

Android - Gesture Detection (Swipe up/down) on particular view

I am trying to implement the OnGestureListener in Android. I have three TextViews in my layout. What i am trying to achieve is to set Gesture Listener for two of the textViews . Here is the layout -
Anukool
  • 4,741
  • 8
  • 25
  • 41
24
votes
4 answers

How to have a UISwipeGestureRecognizer AND UIPanGestureRecognizer work on the same view

How would you setup the gesture recognizers so that you could have a UISwipeGestureRecognizer and a UIPanGestureRecognizer work at the same time? Such that if you touch and move quickly (quick swipe) it detects the gesture as a swipe but if you…
Shizam
  • 9,507
  • 8
  • 47
  • 81
1
2 3
37 38