Questions tagged [android-gesture]

A package in the Android SDK that provides classes to create, recognize, load and save gestures. Gestures are patterns on the touch screen that map to specific functions.

Gesture API

271 questions
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

Android run time exception while using gestureImageView and ViewGroup

Hi i am new to Android application. I want to add zooming effect to my image. I took a sample tutorial from [https://github.com/jasonpolites/gesture-imageview][1] and copied sample code from there. But when I was tried to run the java code in…
maria
  • 53
  • 1
  • 14
0
votes
4 answers

Touchevent program in android not working

I've made a simple singleTouch program for learning purpose,I have tried the fllowing code but its not working I am not getting what exactly the problem is why my program is not runnig..please help me.my code is as…
jigar
  • 1,571
  • 6
  • 23
  • 46
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
0 answers

Prevent Fling on horizontalScrollView

Hello fellow Android programmers ! I Have a HorizontalScrollView in a VerticalScrollView. UX team decided to add a 'Fling' like action to quickly switch between screens. Now when we try to scroll the horizontal scroll the Fling is fired. Any ideas…
Philippe David
  • 8,814
  • 3
  • 24
  • 35
0
votes
1 answer

Swiping Navigation

I have a list view of all my Facebook friend lists. I want clicking on an item from the list view to display a detailed view of the friend. Now I want to slide this detail view of the items to show the detail view of next item in the list. Similarly…
0
votes
1 answer

Blur Activity Background with Swipe in android

I need to blur activity background when i swipe from Right to Left and Left to Right. I have read about Blur or dim background when Android PopupWindow active and dim background with FLAG_DIM_BEHIND. but can't use this because this use to dim…
Bishan
  • 15,211
  • 52
  • 164
  • 258
0
votes
1 answer

How to disable gesture highlight animation on onGesturePerformed?

I was doing similar gesture detection from vogella tutorial here. My MainActivity is: package com.example.gesturesaveopendocs; import java.util.ArrayList; import android.app.Activity; import android.gesture.Gesture; import…
Compaq LE2202x
  • 2,030
  • 9
  • 45
  • 62
0
votes
1 answer

gestureListener is null when onTouch is called

for some reason when the user flings from left to right my app crashes for the first time. But if they do a right to left fling it works fine. It only does this on a gridView that I've constructed. My layout is basically Parent:…
cj1098
  • 1,560
  • 6
  • 32
  • 60
0
votes
1 answer

Issues Implementing Android fling gesture

I'm attempting to implement a fling gesture. Ultimately it will have the same function as the native android contact app, you'll swipe the listview and it'll open up the dialer. I'm having an issue getting everything 100% though. As of now the…
user1890328
  • 1,222
  • 1
  • 13
  • 21
0
votes
0 answers

dragging an list item smoothly in android

I have a list view with a set of items in it. I user the ACTION_DOWN, ACTION_MOVE, and ACTION_UP events to perform gesture detection on the list items. In ACTION_MOVE, I have the following line of code : mDownView.setTranslationX(deltaX); where…
newbie
  • 1,049
  • 5
  • 15
  • 29
0
votes
1 answer

Is it possible to have one GestureDetector for ALL activities?

Is there a better way to implement a GestureDetetor to all activities instead of having to define a GestureDetector individually? In my scenario I have 10 activities for which I would like all of them to have the same behavior for Gestures. For…
Byron
  • 3,833
  • 9
  • 34
  • 39
0
votes
2 answers

How to add our own gestures in android?

I am working on the gestures concept. I want know some thing about how to add our own gestures in android.For example if user drawn "O" symbol i want to make some events. Please share some tutorials and Snippet of the code.
Prudhvi Reddy
  • 81
  • 1
  • 8
0
votes
2 answers

How can i move my activity like slider when i swipe the page in android

I want to make a movement between my activity when I swipe the page. While I swipe the page, the pages have to come with my hand movement. I have detected the swipe direction using SimpleOnGestureListener and changed the activity on intent. But i'm…
0
votes
1 answer

Android GestureDetector Swipe Up/Down vs. Left/Right

I'm using GestureDetector to change the view. It works, but how do I make so that it only changes when the user swipes from Left-to-Right or Right-to-Left and not Down-to-Up... Thanks in advance
fanboy555
  • 291
  • 2
  • 7
  • 20