Questions tagged [swipe]

A quick motion gesture across the touchscreen.

A quick motion gesture across a touchscreen.

2837 questions
15
votes
5 answers

Add swipe right to delete ListView item

I have a ListView that uses a custom adaper (that extends BaseAdapter). How do I add the swipe to delete gesture? I want use the same functionality the gmail application uses.
Fra87
  • 297
  • 2
  • 5
  • 16
15
votes
7 answers

Android ListView Swipe Right and Left to Accept and Reject

I want to develop a list view that when swiped left to right - displays in the left corner an accept (true) icon (non clickable - show just a color change when swiping left to right), like the following screen shot: When I swipe from left to right…
Joseph Mekwan
  • 1,082
  • 1
  • 15
  • 28
15
votes
1 answer

Returning true and false in OnTouch?

Does it matter if i return true or false in onTouch() of an OnTouchListener? I can't see any difference between returning true or false in this example: Android Swipe on List
SoliQuiD
  • 2,093
  • 1
  • 25
  • 29
15
votes
3 answers

Android listview, swipe to action

I have listview with some text. I want to show images on swipe action (almost like in gmail app). For example, if I swipe from left to right - my list item is moving right, and image is sliding from the left. My list item can move right no more…
BoredT
  • 1,590
  • 15
  • 19
15
votes
2 answers

Android swiping, using ViewPager without tabs

Im trying to make an app that have the navigation type of swiping. This is how far I have gone: Fragment activity: package com.app.BoomBase; import android.os.Bundle; import android.support.v4.app.Fragment; import android.util.Log; import…
Lasse
  • 597
  • 2
  • 10
  • 33
15
votes
3 answers

How to detect a swipe gesture on webview

i'm developing a simple android application with a RelativeLayout and a WebView inside. I have to detect swipe from bottom to top done only in the 20% of the left part of the screen. So when user swipe in that space from bottom to top i have to…
Jayyrus
  • 12,961
  • 41
  • 132
  • 214
14
votes
3 answers

iPhone simulator swipe right works, but swipe left does not?

I'm trying to use swipe left and right on a UIScrollView. However it looks like swipe left does not work in iPhone simulator even though swipe right does. Did I miss any step? - (void)viewWillAppear:(BOOL)animated { [super…
Guoliang Cao
  • 507
  • 4
  • 11
14
votes
3 answers

RecyclerView ItemTouchHelper - Custom View

I am trying to have a custom view (or image) appear when swiping left/right. I'm close to having it working, however I'm having issues with using a custom image. The effect I'm going for is similar to this: RecyclerView ItemTouchHelper swipe remove…
aherrick
  • 19,799
  • 33
  • 112
  • 188
13
votes
7 answers

Swipe to go back in jQuery Mobile?

I'm trying out jQuery Mobile, because I wasn't able to get swipe to go back a page to work well in jQTouch. But being new to jQuery Mobile, I have no idea how to go about implementing swipe, and how to make a swipe right cause a return to the…
Anders
  • 12,556
  • 24
  • 104
  • 151
13
votes
4 answers

Adding a simple left/right swipe gesture

I need to add a simple left/right swipe gesture so that the 'selected' image cycles when swiped on mobile, similar to clicking the buttons in the hero component, also similar to pressing the left/right arrow keys on a keyboard I don't have the most…
James Bameron
  • 143
  • 1
  • 2
  • 8
13
votes
1 answer

App won't recognize swipes using Hammer.JS and HammerGestureConfig in Angular 9

I can't recognize swipes in my Angular app using Hammer.JS. It's setup like this: "@angular/core": "~9.0.0-next.6", "hammerjs": "^2.0.8", "zone.js": "~0.10.2" app.module.ts is looking like this: import { BrowserModule, HammerGestureConfig,…
lampshade
  • 2,470
  • 3
  • 36
  • 74
13
votes
1 answer

Replicate the WhatsApp swipe between tabs transition in VueJS/VuetifyJS

I'm using the VuetifyJS framework for VueJS and I would like to replicate the swipe between tabs transition WhatsApp for Android uses. You can swipe in WhatsApp to the left or right and you get to see the new section while you swipe. In VuetifyJS…
Tom
  • 5,588
  • 20
  • 77
  • 129
13
votes
2 answers

Gesture in listview android

hi i have to add a gesture to my listview,i want to implement the same functionality of contact application. when i left swipe it should send a message,right swipe it should call. can anyone help me how to do those gesture detection... i have…
Ads
  • 6,681
  • 12
  • 47
  • 72
13
votes
1 answer

iOS Advanced Gestures: Getting Swipe Direction Vector

Looking through the documentation, it seems that the new advanced gestures API doesn't determine the direction of a swipe beyond the basic { left, right, up, down }. I need the start point of the swipe and the direction. Is there anyway to retrieve…
P i
  • 29,020
  • 36
  • 159
  • 267
13
votes
7 answers

Access iOS Control Center using appium

I am trying to open the Control Center using appium and the following code: int halfWidth = driver.manage().window().getSize().width / 2; int screenHeight = driver.manage().window().getSize().height; driver.swipe(halfWidth,…
Charlie S
  • 4,366
  • 6
  • 59
  • 97