Questions tagged [swipe-gesture]

Swipe is a gesture that involves touching a touchscreen or trackpad, translating the finger in one direction across the screen or pad, and removing the finger. It is commonly used as a discrete scrolling gesture (for example, go to the next picture).

Swipe is a gesture that involves touching a touchscreen or trackpad, translating the finger in one direction across the screen or pad, and removing the finger. It is commonly used as a discrete scrolling gesture (for example, go to the next picture).

526 questions
246
votes
20 answers

Swipe to Delete and the "More" button (like in Mail app on iOS 7)

How to create a "more" button when user swipe a cell in table view (like mail app in ios 7) I have been looking for this information both here and in the Cocoa Touch forum, but I cannot seem to find the answer and I am hoping someone smarter than…
Guy Kahlon
  • 4,510
  • 4
  • 30
  • 41
75
votes
11 answers

Swipe ListView item From right to left show delete button

I have a custom ListView showing the list of words selecting from database. When I swipe this listview item i want to show Delete button like image below. And when I press that button it is deleted from Database and refresh the listview. m I already…
user3098538
  • 1,201
  • 3
  • 13
  • 15
67
votes
13 answers

How to detect swipe in flutter

I've tried using the swipe detector plugin for flutter to achieve navigating to a new screen on swipe right but it's not working, no errors are thrown and the breakpoint is never hit when I debug it. I looked into the GestureDector but I wasn't sure…
Sam Cromer
  • 2,063
  • 10
  • 28
  • 50
44
votes
9 answers

ViewPager inside ViewPager

I would like to create a ViewPager (with three items) where each of its view is another ViewPager (with two items). User then swipe items like this: ViewPager1[0] ViewPager2[0] ViewPager1[0] ViewPager2[1] ViewPager1[1] ViewPager2[0] ViewPager1[1]…
44
votes
1 answer

Add UIGestureRecognizer to swipe left to right right to left my views

I have a UIStoryboard with different UIViewControllers, I would like to add another UIViewController (like a dashboard) that when the user swipe the ipad from left the dashboard will appear then when he swipe back the current view will be…
43
votes
5 answers

Equivalent to the Android's ViewPager on iOS? Swipe/flip through pages of data

On Android there's neat way to browse between several pages of data with the same layout by using ViewPager and Fragments. User swipes left or right, and the pages change. There's only one view controller and one layout resource for all pages, but…
Vanja
  • 4,415
  • 3
  • 26
  • 22
29
votes
5 answers

What is the best way to implement swipe navigation in Angular 2?

I'm new to Angular 2 and am looking for a way to implement a good tab touch swipe navigation for mobile users with a swipe transition to the next tab view. So far I've found a package called angular2-useful-swiper although am not to keen on using it…
Jonathan002
  • 9,639
  • 8
  • 37
  • 58
29
votes
3 answers

Is it possible to disable Control Center in iOS 7 programmatically and if not, what are alternatives?

I have developed an app that uses swipe gesture from bottom up. It was working perfectly in iOS 6, but now iOS 7 came out, and it works maybe 1 out of 25 times: i get iOS 7 Control Center almost every time. Obviously, Control Center can be disabled…
mike.tihonchik
  • 6,855
  • 3
  • 32
  • 47
21
votes
3 answers

Swipe back - interactivePopGestureRecognizer not working

I have screens like this photo. HomeViewController will push to maintabbar, and a tabbar item will push to detailScreen. Why swipe back not working. I think it is default in IOS. Please help me p/s: If i use SwipeBack in cocoapods, it working. But…
Nguyen Hoan
  • 1,583
  • 1
  • 11
  • 18
21
votes
3 answers

Android: swipe screen to open another activity?

i'm a n00b programmer and need a lot of help. Just for tutorial purpose, I want to make simple flora & fauna (plant & animal) encyclopedia I want to make my home screen drag-able just like the Android's home screen. Swipe right to open Plant page…
hrsetyono
  • 4,474
  • 13
  • 46
  • 80
20
votes
2 answers

Crash if swiping to delete a cell of UITableView quickly and continuously in iOS11

The problem is like the title. Here is my code. And I find the operation, swipe from the right to left to delete directly, is new feature in iOS11 let model = self.customRules.remove(at: indexPath.row) //delete datasource self.dao.delete(model:…
Victor Choy
  • 4,006
  • 28
  • 35
19
votes
0 answers

Android: How to intercept touch event in ViewPager2

How to prevent swiping in androidx ViewPager2 when the touch event is coming from inside a nested view (e.g. a HorizontalScrollView, etc)? I expected this to be possible by overriding ViewPager2.onInterceptTouchEvent() but since ViewPager2 is final…
ccpizza
  • 28,968
  • 18
  • 162
  • 169
18
votes
3 answers

Getting cell indexpath on swipe gesture UITableView

I am doing swipe gesture on UITableView and want to know indexpath of cell on which my fingers are currently into i.e. swipe gestured performed from which cell. I require indexPath as I have to show information for that selected cell.. Thanks in…
P.J
  • 6,547
  • 9
  • 44
  • 74
18
votes
4 answers

jQuery (Swipe vs. Touch) pageX and pageY keep returning 0

I'm playing with touchstart and touchend events on my iPhone. I built a sample page that has div that if you touch it and scroll the page, it should return the y coordinates of the start and end positions. link: http://jsbin.com/ibemom/2 the…
DA.
  • 39,848
  • 49
  • 150
  • 213
17
votes
6 answers

Is it possible to produce continuous swipe action on the touchscreen, with adb, on Android?

I'm trying to reproduce swipe action, with the help of adb. Currently, this code works (for swipe) adb shell input touchscreen swipe 530 1420 530 1120 adb shell input touchscreen swipe 530 1120 830 1120 which is adb shell input touchscreen swipe…
Ocelot
  • 1,733
  • 4
  • 29
  • 53
1
2 3
35 36