gesture

use an Android GestureOverlayView seperate from the game thread execution?

Hi I have a gesture activity class that listens out for when a gesture is performed on screen, which is connected to a GestureOverlayView which covers the entire screen. I have a main game thread DistractionsThread that is launched from the Distractions menu file. The thread deals with the physics and do draw methods that play the game ...

Adding GestureOverlayView to my SurfaceView class, how to add to view hierarchy?

I was informed in a later answer that I have to add the GestureOverlayView I create in code to my view hierarchy, and I am not 100% how to do that. Below is the original question for completeness. I want my game to be able to recognize gestures. I have this nice SurfaceView class that I do an onDraw to draw my sprites, and I have a th...

Gesture Firefox on Mac: Swipe back tiggers Edit-->Find instead of 'Back'

Whenever I use the swipe gesture to the left for browsing back like in Chrome or Safari implements it, Firefox does not browse back instead opens the search/find dialog. The about:config shows which should be fine: browser.gesture.swipe.left; Browser:BackOrBackDuplicate The swipe to the right for 'Forward' however works. How can I...

Remove gestures from RatingBar

Hi, I have an Activity with several RatingBars on it so my users can rate many different things. My problem is that this makes it difficult for my users to scroll up and down the screen. If you attempt to slide your finger vertically on the screen and the first spot you touch is over a RatingBar, the RatingBar tries to capture the ges...

Slide over UITableViewCell, present another cell. Framework?

Hey! I am trying to find either a framework or make one myself that can do this: When you slide/swipe across a UITableViewCell, another cell gets displayed (with options such as Share on Twitter, Facebook, email etc). The Twitter-app has got this, and I was wondering if there was an open framework for it. If not, where do you recommen...

EditText not capturing ViewFlipper flings?

This is maddening. I have the following XML layout: <FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:background="@drawable/shadow" android:focusable="true" android:focusableInTouchMode="true"> <ViewFlipper android:id="@+id/flipper" android:layout_width="fill_parent" android:layout_height="...

How do you switch 2 different Views by using Drag Gesture in Android?

Hi, so im trying to create an interface where the user can drag their finger from the right to the left to get to the second view, and the first view being dragged will move from right to left. very similar to an android device home screen, where the user can drag a screen to the left or right and another screen will emerge from there. I...

finding the Width and Height of View to restrict the boundary of Image Movement using Gesture

Hi all, I have used gesture implementation in my application, my object moves perfectly throughout the screen, during fling, scroll..etc, but sometimes my object goes out of the view and its getting disappear, now i have to restrict the boundary of my gesture object, i have placed this gesture with in a view, i tried to get the width a...

How to get a Gesture View like in official Facebook app

I want to implement the same behaviour of the notification view in the official Facebook app. The "notifications" tab are at the bottom and can drag/drop via fingers to full screen. How can i do that? I've tried it via ViewFlipper and Animation.... But no success. Does anyone know how we can do this? The app "Zedge" has the same in t...

How to recognize swipe gesture in UIScrollView

I'm trying to recognize left/right swipe gesture in a UIScrollView. I've tried to create UISwipeGestureRecognizers and associate them with the scroll view. It works but very rarely. Most of the time I do not get called. Why? How can I reliably get swiping left/right to work? Can I use the gesture recognizers or do I have to somehow hand...

How is google maps (web app) scaling so smooth on the iphone/ipad with the gesture/pinch?

If you have used the Google Maps web app on your iphone or ipad you know what i am talking about. You can't see my fingers in this screen grab, but this is mid-pinch (if you will) zooming out. The detailed area was the initial map viewing area and the blurry bit outside is the extra map that has come into view mid-pinch. The pinch-to-...

Gesture problems with a ViewFlipper that contains a ListView

I have a ViewFlipper where one of the views is a ListView. To move back and forth between the views, I have a GestureListener that detects left and right swipes. Sometimes the left & right swipes interfere with the ListView. That is, when I want to switch to the next view by swiping left/right, I may accidentally click on an item in my l...

Trouble using UILongPressGestureRecognizer in custom MKAnnotationView

Having trouble with a UILongPressGestureRecognizer in a custom subclass of MKAnnotationView. The callback is fired only intermittently. If I make the minimumPressDuration shorter, it fires more frequently. With a minimumPressDuration value of 0.1, it fires every time. With a value of 0.4, it never fires at all, no matter how long I l...

Passing scroll gesture to UIScrollView from another view

Hi, I do have a view that has a UIScrollView and over it there is a view that display some text. When the user swipes over this view that contains text the UIScrollView won't scroll. How to make this view transparent in a way it relays the swipe gesture to UIScrollView. Thanks ...

GestureDetector makes unwanted MapView move

I'm implementing some marker draggable behaviour in an ItemizedOverlay class by overriding the onTouchEvent which works fine - I can drag markers around and the map stays stationary or if I start the drag on the map itself, then the map scrolls and the markers stay stationary (this is my intended behaviour). However, I wanted an addition...

Implementation of slide gesture like is done in the call log list view

In the call log, there is a feature that when you slide one direction it will call the number and in the other direction message the missed number. In each case the missed number in the list view is pushed aside by either "Call" with a green background or "Message" with an orange background. I think this is really need and would like t...

Android: Slide gesture and animation for switching between tabs.

I'm sure this has been answered somewhere, already, but I just can't find it: I have a TabHost with three tabs, each containing different views (not Activities). What I want is to make a swiping gesture from right to left and let the current view slide out to the left and the next view slide in from the right, thus changing the current t...

iOS Advanced Gestures: Getting Swipe Direction Vector

Looking through the documentation, it seems that the new advanced gestures API doesn't determine the direction of a swipe beyond the basic { left, right, up, down }. I need the start point of the swipe and the direction. Is there anyway to retrieve this other than coding my own advanced gesture library from scratch out the basic gestur...

Position both the safari "touches" from a gesture event?

I want to get the position (relative or otherwise) of the two fingers/touches inside a gesture event (gesturestart, gesturechange, gestureend) on mobile Safari (iOS: iPad/iPhone). I know that the gesture* events don't actually provide this in the event args but i thought there might be a 'trick' to getting this info. It would be great to...

Android gesture detect problem

I have a my main.xml as a ViewFlipper which imports 5 views for my program. If I wrap the whole main.xml in GestureoverlayView I can detect gestures just fine with my listener, however, it displays the gesture on the screen. I don't want the gestures shown i just want them detected so I tried applying the touch listener to the ViewFlipp...