Questions tagged [gesture]

A gesture is a specific pattern of touch, cursor, or physical movement that may be recognized by an application to perform a specific task.

A gesture is a specific pattern of touch, cursor, or physical movement (Recognized through a camera or other sensor such as or ) that may be recognized by an application to perform a specific task. See also .

2187 questions
13
votes
5 answers

Algorithm to emulate mouse movement as a human does?

I need to test a software that treats some mouse movements as "gestures". For such a task I need to emulate mouse movement from point A to point B, not in straight line, but as a real mouse moves - with curves, a bit of jaggedyness etc. Is there any…
grigoryvp
  • 40,413
  • 64
  • 174
  • 277
13
votes
7 answers

The GestureDetector does not work (example from android developer)

I am reading the gesture in android at android developer, and following the tutorial I tried to run the following codes: public class MainActivity extends Activity implements OnGestureListener, OnDoubleTapListener { private static final String…
hguser
  • 35,079
  • 54
  • 159
  • 293
12
votes
1 answer

Implement Swipe Gesture in Kotlin

I'm trying to implement a gesture detector for my application written in Kotlin. I'm following the comment on this question: link So, I created the OnSwipeTouchListener class and I implemented the listener in my class: class DetailActivity :…
Babbara
  • 448
  • 1
  • 6
  • 21
12
votes
3 answers

Vertical ViewPager and Android Pie Inconsistent Behavior with Swipe Gesture

My problem is closely related to two other questions that haven't been answered yet. ViewPager not responding to touch in layout area created dynamically in…
12
votes
2 answers

Pinch, Pan, and Rotate Text Simultaneously like Snapchat [SWIFT 3]

I'm trying to make a TextView that you can move around like snapchat does. I have made something similar to it, although when you try and scale while rotates, it tends to stretch horizontally infinitely and dragging can be a little buggy at times.…
Skiddswarmik
  • 226
  • 1
  • 2
  • 14
12
votes
1 answer

How to Implement Contact details screen like Lollipop

I want to implement Contact details screen like Android 5.0 aka Lollipop. To describe more when we click on icon/image of any contact, one view slide up from bottom of screen. By default, this view fills half of screen and remaining top of screen is…
silwar
  • 6,470
  • 3
  • 46
  • 66
12
votes
2 answers

onfling() not being called for some reason

I'm trying to implement gesture in my app and for some reason the the onfling() is not being called. I tried reading numerous posts regarding this and tried fixing my code but it's not working . The below is my code. Please have a look: public class…
Azhar92
  • 923
  • 2
  • 8
  • 17
12
votes
2 answers

Qt, Gestures. TapAndHold and Swipe are not recognized

I tried a "Image Gestures Example" from http://doc.qt.digia.com/4.6/gestures-imagegestures.html. In this Example you have only 3 Gesture: PanGesture, PinchGesture and SwipeGesture. But Qt provides 5…
Alice Carroll
  • 129
  • 1
  • 4
11
votes
3 answers

How do I implement a wave gesture in kinect?

I would like to use a gesture, so the kinect can select the person with the gesture as the main player. After this he can control the PC. Selecting the person and giving them control is done. Now i have to implement a gesture, but i dont know how to…
Letoir
  • 395
  • 7
  • 15
11
votes
3 answers

Horizontal swipe not detected in ScrollView's parent

Possible Duplicate: Gesture detection and ScrollView issue EDIT: question with full code asked here. I've got a layout with a child. I set a gesture listener to detect horizontal swipe on the layout. When the layout is a LinearLayout the swipe…
jul
  • 36,404
  • 64
  • 191
  • 318
11
votes
3 answers

SwiftUI: How to get drag and drop reordering of items to work?

I have the following SwiftUI view: struct ContentView: View { @State var model: Model var body: some View { ScrollView { LazyVGrid(columns: columns, spacing: 10) { ForEach(model.events, id: \.self) {…
Richard Robinson
  • 867
  • 1
  • 11
  • 38
11
votes
6 answers

Flutter - Detect Tap on the Screen that is filled with other Widgets

I am trying to detect a tap on the screen. I've tried multiple variation of using the GestureDetector but that just leads to the app detecting tap on the child element and not the screen. Here is the code: class QQHome extends StatelessWidget { …
Nachiketa Vadera
  • 125
  • 1
  • 1
  • 6
11
votes
1 answer

pass windows 10 touchpad gestures to remote desktop

I was just wondering if it's possible (even with a third party software) to pass the touchpad gestures from a laptop running windows 10 to a pc (no touchpad available) using RD. I`m interested especially in passing the swipe with four fingers…
Florin V
  • 346
  • 2
  • 13
11
votes
2 answers

How to disable swipe back gesture globally in ionic 4 angular project

Already tried to achieve this with: and in app.module: IonicModule.forRoot({ swipeBackEnabled: false }), config.xml:
Markus Kösel
  • 753
  • 1
  • 6
  • 17
11
votes
3 answers

Android OnGestureListener Fling is not detecting

I want to detect fling motion in a block of the screen. I am using the following code for that. public class MyinfoActivity extends Activity implements OnGestureListener { @Override public void onCreate(Bundle savedInstanceState) { …
dev_android
  • 8,698
  • 22
  • 91
  • 148