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
0
votes
1 answer

swipe between activities,swipe from one activity to another

I am trying to do swipe activity but failed to do so. Below will be my code but its doing nothing, not even giving any error. I don't know what to do. final View lay_first=(View) findViewById(R.id.lay_first); …
user2561559
  • 33
  • 2
  • 10
0
votes
1 answer

Android SwipeGesture working only in one direction,i have no clue why?

i am making a music player for android but i recently updated it with swipe gestures but the thing is that only one gesture(bottom swipe is working) i checked the swipe gesture class and nothing seems to be wrong in that here is the code of my…
0
votes
1 answer

Swipe and change layout of an element of a listview

I am trying to achieve the following effect on my custom list-view: When the user swipes the list element to right the layout of the swiped list item would change its layout. I have tried the SwipeListView approach from GitHub but i didn't manage to…
Adrian Olar
  • 2,883
  • 4
  • 35
  • 63
0
votes
2 answers

How to control the fling effect in HorizontalScrollView?

I want to implement a HorizontalScrollView with four TextViews having text say("First view", "Second View", "Third View", "Fourth View") such that HorizontalScrollView will display only one center TextView at one time and when user scrolls/swipe,…
neha
  • 9
  • 2
0
votes
2 answers

Approach how to create a virtual book in Android

I'd like to create a kind of virtual book where I can scroll through the pages by left or right swipe gesture (or first by just using "next" and "previous" - buttons). The content of a book page is loaded from a sqlite-database (for each page I'll…
cody
  • 6,389
  • 15
  • 52
  • 77
0
votes
1 answer

Custom UITableViewCell delete button not showing

I created a custom UITableViewCell subclass with multiple fields and some other properties. Since I used this new cell in my UITableViewController, the cells do not react on the "swipe to delete" gesture. To test if I'm missing something in my…
Julian F. Weinert
  • 7,474
  • 7
  • 59
  • 107
0
votes
2 answers

How to slide the web view in android

I am developing an application where I am showing different web pages in different web views. At present, I am using next and previous button to go to next and previous page respectively. But I want to add slide gesture to go to next and previous…
0
votes
1 answer

Implement swipe gesture on whole ListView

I need to implement a swipe gesture using two finger touch input on my ListView from right to left and vice-versa, but it should work exactly like an app named Clean Master who applied this under its "History" section (check the image) for going…
Chintan Soni
  • 24,761
  • 25
  • 106
  • 174
0
votes
2 answers

How to implement swipe gestures on listview

I am beginner to android. I want to learn how to implement the following. Check this image: Here is what i want to implement: As shown in figure, i need to swipe listview from left - to - right and viceversa. I have to display some data according…
0
votes
1 answer

Swipe event on "complex" layout

I'm trying to implement the swipe gesture on a layout. Here is the xml:
Daniele Vitali
  • 3,848
  • 8
  • 48
  • 71
0
votes
0 answers

Swipe to dismiss for Android spinners

Is it possible to swipe to dismiss Android spinner items. If so, how? I can't seem to find resources online specifically for swipe to dismiss + spinners
user1007692
  • 307
  • 2
  • 4
  • 15
0
votes
2 answers

onSwipe(int direction) not working

I can't override the onSwipe() method. The error is "The method onSwipe(int) of type Adds must override or implement a supertype method". Can anyone tell me what I did wrong?. I want to navigate between activities using swipe gesture. Is there any…
Sumodh S
  • 709
  • 1
  • 14
  • 36
0
votes
2 answers

iOS working with multiple swipe recognizers

I have right and left swipe recognizers on my view, as well as a table.There is a problem when user swipes left->right on the table view, table handle them and swipes table content instead of execution of left->right swipe recognizer methods. How…
0
votes
2 answers

How to switch from one to two or more views in order like one by one view by swiping without using View flipper?

class MyGestureDetector extends SimpleOnGestureListener { @Override public boolean onFling(MotionEvent event1, MotionEvent event2, float velocityX, float velocityY) { dX =event2.getX()-event1.getX(); dY…
Achiever
  • 1,626
  • 10
  • 30
  • 54
0
votes
1 answer

Implementing side-swipe menu like facebook from the parent view which also has different hidden subviews

I need to create a right side swipe menu in one of the child views like the one in facebook app. I have referred to sample codes like Inferis/ViewDeck. But my issue is that i want to implement the side swipe on lets say Y view controller. In app…
Shaunak
  • 707
  • 1
  • 9
  • 29