Questions tagged [onfling]

The onFling method is the method detecting the Fling motion will catch a horizontal swipe, either from left to right, or from right to left. It is called when the user swipe on the screen and must return either true or false.

143 questions
0
votes
2 answers

No response from onFling

I have been staring at this all night now. I am trying to make a simple interactive ball game for Android, but I just can't seem to get the onFling method working. My logs that are in onFling don't appear in LogCat, and there is no response to a…
Zero
  • 1,864
  • 3
  • 21
  • 39
0
votes
1 answer

How onFling works in viewSwitcher

I have 2 layouts inside a viewSwitcher, I need to change when I swipe that. package slide.trys.one; import android.app.Activity; import android.os.Bundle; import android.view.GestureDetector; import…
praveen kumar
  • 828
  • 4
  • 14
  • 22
0
votes
1 answer

Android Only one item change per fling in gallery

I had implemented a custom Gallery with custom Adapter. My Requirement is that however fast or slow does the user operates fling on the gallery only one item should change in the gallery. I tried to override the Gallery's onFling…
Ankit
  • 4,426
  • 7
  • 45
  • 62
0
votes
1 answer

Android Gallery on image change

Hi I'm writing a gallery library for a few projects i'm working on so far i have slide show and buttons for navigating the gallery besides using fling. I'd like to hide the navigation buttons after say 3 seconds of not swiping. So the idea is once…
user577732
  • 3,956
  • 11
  • 55
  • 76
0
votes
2 answers

Why is my SimpleOnGestureListener not functioning?

I'm using my own GestureDetector class to detect a left|right onFling event. Everything I see looks good in my code but nothing happens...? I need the added functionality beyond my toggle button that opens|closes a navigation view in my…
user742030
-1
votes
2 answers

slide images in gesture

I want to create app like this http://www.edumobile.org/android/wp-content/uploads/2012/08/pathfinderexample2.png http://www.edumobile.org/android/wp-content/uploads/2012/08/pathfinderexample3.png It is Possible to create gesture. in slide images…
kannan
  • 1
  • 2
-1
votes
1 answer

swipe length/speed thresholds for list view swipe-to-delete action (like KitKat stock email app)

What are the parameters (swipe distance and/or speed) that the latest (4.4 KitKat) Android stock email client uses to determine whether a horizontal swipe is far enough to cause an email to be deleted when viewing the inbox list? I'm unfamiliar with…
Justin Grant
  • 44,807
  • 15
  • 124
  • 208
-2
votes
1 answer

Calculation of velocity in onfling event

I want to reproduce onfling event in javascript. I know I have to calculate px/time but I don't know what time I have to take for reference.
accaacco
  • 17
  • 4
1 2 3
9
10