Questions tagged [swipe]

A quick motion gesture across the touchscreen.

A quick motion gesture across a touchscreen.

2837 questions
13
votes
4 answers

How to Implement Swipe In Android Game Without View

I'm trying to make a Snake game on Android in which the snake moves with swipe gestures. I've tried a lot of ways to get this done but none of them seem to work for me. I haven't implemented a view - will that be a problem? This is a sample I tried…
Caife
  • 415
  • 1
  • 5
  • 16
13
votes
1 answer

io7 navigation check when finish transition

I want to mark that my UINavigationController is animating (push/pop) or not. I have a BOOL variable (_isAnimating), and the the code below seem work: - (void)navigationController:(UINavigationController *)navigationController…
vietstone
  • 8,784
  • 16
  • 52
  • 79
13
votes
5 answers

SwipeListView only one item opened at a time

This question refers to the SwipeListView component found here: https://github.com/47deg/android-swipelistview After trying out several implementations and fixes I found on the web I decided to modify the sources a little. I will post this here…
Adrian Olar
  • 2,883
  • 4
  • 35
  • 63
13
votes
2 answers

Prevent swipe from triggering ng-click handler

I'm working on implementing an iOS-like swipe-to-delete gesture on HTML table rows. For example, a leftwards swipe on Site11 will turn it from a standard row: into a delete-able row: I have this functionality working with the ng-swipe-left…
Nathan Friend
  • 12,155
  • 10
  • 75
  • 125
13
votes
2 answers

Simple swipe gesture to activity tutorial?

im looking for a turoial with source code on swipe gesutes, I dont want a view pager, I want a swipe gesture tutorial. here is one example I found but doesnt work for me http://www.eridem.net/android-tip-010-left-and-right-swipe-gesture-events I…
Moussa
  • 851
  • 3
  • 10
  • 19
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
1 answer

Sync directional controls with swipe events

I've built two kinds of functionality in controlling the slider that I've built. One is buttons with directional controls and other is touch/swipe events. How can sync both of them so that when i press prev/next the swipe events is also updated and…
clestcruz
  • 1,081
  • 3
  • 31
  • 75
12
votes
2 answers

LibGDX - Get Swipe Up or swipe right etc.?

touch area http://imageshack.us/a/img836/2909/swipe1.png In the green area the user can swipe up, right, down, left. How can I now get e.g. swipe Up? or swipe Down? or swipe right or swipe left? e.g. how to get a String -> input = getSwiped(); ->…
Johnny
  • 612
  • 3
  • 13
  • 32
12
votes
2 answers

HTML5 swipe.js css3 transitions; offscreen rendering and caching of page elements

I am building a HTML5 magazine for tablets and desktops with use of swipe.js (http://swipejs.com). Everything seems to work fine, In one HTML page I have set next to each other fullscreen list elements. The whole magazine is build up in one static…
11
votes
2 answers

Android: GestureDetector not working (gestureDetector.onTouchEvent(event) always false) with Tabs (TabActivity, Tabwidget)

I have implemented my TabActivity with different child activities: intent = new Intent().setClass(this, MyChildTabActiviy.class); // Initialize a TabSpec for each tab and add it to the TabHost spec =…
einschnaehkeee
  • 1,858
  • 2
  • 17
  • 20
11
votes
2 answers

Advanced RecyclerView library - code examples

https://github.com/h6ah4i/android-advancedrecyclerview This seems to be a great library in terms of what functionality it offers. However, it lacks good documentation. It has a "tutorial" on Swipeable items, but like some other people I couldn't…
iBobb
  • 1,140
  • 1
  • 14
  • 35
11
votes
3 answers

How to perform swipe action in Selendroid?

I have tried with below codings for swiping. While running the test case, the swipe action doesn't occurs and I am also not getting any error message. How can I swipe on both side from left to right and vice-versa. There are two methods which are…
Galet
  • 5,853
  • 21
  • 82
  • 148
11
votes
1 answer

How to implement a swipe-gesture between Fragments?

I would like to implement in my android app that I'm developing with the Android studio ide. The swipe between the different tabs (fragment). I tried searching online and on StackOverflow but I could not quite understand. My action bar is the…
lillogoal
  • 203
  • 1
  • 3
  • 11
11
votes
2 answers

Different menu for different tabs in tab+swipe application for android project

I am a beginner to android applications and java, basically I am a PHP developer. I've a project for a tab+swipe application, Reseller.java package com.idevoc.onsitereseller; import java.util.ArrayList; import android.app.ActionBar; import…
Anshad Vattapoyil
  • 23,145
  • 18
  • 84
  • 132
11
votes
1 answer

android swipe to delete list row

so i've done some searching but haven't found a good answer. anyone who's familiar with android 4.0 knows the fancy swipe to remove running apps. i'm trying to implement this into a dynamic list. when i say dynamic, it's a list being built with a…
user1457114
  • 127
  • 1
  • 1
  • 5