Questions tagged [swipe]

A quick motion gesture across the touchscreen.

A quick motion gesture across a touchscreen.

2837 questions
26
votes
5 answers

End up activity on swipe right?

I have to finish Activity when user offer a right swipe anywhere in the screen. I have tried with GestureDetector and that is works fine if there is neither ScrollView nor RescyclerView exists in the Activity and in addition views that have…
Stella
  • 1,817
  • 6
  • 30
  • 55
25
votes
4 answers

how detect swipe gesture direction?

i need to detect direction of my swipe gesture and i've got problem with it. gesture is working, but i don't know how to detect direction. ... swipeGesture = [[UISwipeGestureRecognizer alloc] initWithTarget:self…
25
votes
2 answers

Touch Events in Vue 2.0

I'm using Vue 2.0 and I should work with swipe gestures. I have checked that there is one official plugin (named vue-touch) but as they say, Vue 2.0 is not supported yet. Which libraries are available for Vue 2.0 to implement touch events?
Asqan
  • 4,319
  • 11
  • 61
  • 100
24
votes
3 answers

Swipe/Fling tab-changing in conjunction with ScrollView?

The best I could find on this particular issue (although I do not use a Gallery): ScrollView and Gallery interfering - doesn't really give a specific answer though. And my implementation does not use a Gallery, obviously. Jump down to the next bold…
Codemonkey
  • 3,412
  • 3
  • 20
  • 24
24
votes
7 answers

ViewPager disable swiping to a certain direction

I want to disable the swiping, but only to the right side. I found a working solution in this answer. Unfortunately, this copies the whole ViewPager source to achieve the goal. Is there any methods just inheriting the existing class and not…
WonderCsabo
  • 11,947
  • 13
  • 63
  • 105
24
votes
4 answers

Android: How to recreate Action bar when fragment changed

I have an activity showing a few fragments. Activity view contains only ViewPager initialized with custom FragmentPagerAdapter. This adapter provide navigation among 3 fragments. All seems to work fine except Action bar. I override…
mc.dev
  • 2,675
  • 3
  • 21
  • 27
23
votes
2 answers

Swipe smoothness differ between divs

I am using react-swipeable-views in my project to enable touch swipe events. I can swipe between different div, which are inside . I have three different divs, out of which, in the 1st div, I have list of images. In the other two…
Benjamin Smith Max
  • 2,668
  • 8
  • 33
  • 56
23
votes
1 answer

Swipe and OnClick events in RecyclerView

I'm trying to implement a swipe to dismiss action in a RecyclerView but when I set an OnClickListener on any View in a ViewHolder it overrides all OnTouch events on that view. I can abandon OnClickListener and handle all clicks in the TouchListener…
Ivan Fork
  • 812
  • 1
  • 9
  • 22
22
votes
5 answers

Left-right arrow indicators over a ViewPager

I want to show left and right arrows over my ViewPager, to indicate swiping. I added two ImageButtons over the ViewPager-element but those areas then block the ViewPager from triggering the "swiping". I also want presses on those arrows to trigger…
distractedhamster
  • 689
  • 2
  • 8
  • 22
21
votes
6 answers

Swipe detection for each row of listview

I have a list of videos located in the sd-card. At this point, I just need help in creating gestures or swipe detection for each row in the list view. Thanks to this question at stackoverflow Fling gesture detection on grid layout, I implemented the…
Farhan Khurshid
  • 211
  • 1
  • 2
  • 3
21
votes
10 answers

Swipe Direction in ViewPager

I have an Android app that uses ViewPager and FragmentStatePagerAdapter. I however need to add a new feature in which I have to know the swipe direction to move from one fragment view to another, left or right. (i.e, when I swipe left, I would do…
21
votes
3 answers

Android webview: prevent touch gestures being passed to parent viewpager

I have a viewpager that contains many child views; each child view is a webview. Each webview has some HTML objects that user can interact with; for instance, a slideshow that works on swipe gestures or a draggable circle that user can move around…
Hoang Huynh
  • 1,384
  • 2
  • 16
  • 33
20
votes
5 answers

Simulate swipe with mouse in javascript

I'm trying to make an image rotator that works on mobile devices using swipe for navigation. I'm also trying to make the same rotator to work on PC browsers but to be able to use the mouse drag to simulate swipe. Any good ideeas?
gabitzish
  • 9,535
  • 7
  • 44
  • 65
20
votes
10 answers

How would I implement a swipe-based circular control like this?

I am working on an Android application, and I have a TextView where I display a price (for example 50$). I would like to have a circular control similar to this picture: Swiping a finger clockwise on the dial increases the amount by $1…
Y2theZ
  • 10,162
  • 38
  • 131
  • 200
19
votes
2 answers

How do I disable the full swipe on a tableview cell in iOS11

UITableViewDelegate.h // Swipe actions // These methods supersede -editActionsForRowAtIndexPath: if implemented // return nil to get the default swipe actions - (nullable UISwipeActionsConfiguration *)tableView:(UITableView *)tableView…
Megan Moreno
  • 203
  • 2
  • 6