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.
Questions tagged [android-gesture]
271 questions
                    
                    43
                    
            votes
                
                2 answers
            
        android - How can I make a button flash?
Is there any way, in code, to make a button flash continually and then stop flashing when pressed?
         
    
    
        ron
        
- 5,219
- 8
- 39
- 44
                    35
                    
            votes
                
                6 answers
            
        Can we use scale gesture detector for pinch zoom in Android?
Can we use scale gesture detector for pinch zoom in Android?
         
    
    
        user562237
        
- 775
- 5
- 15
- 24
                    28
                    
            votes
                
                1 answer
            
        OnBackInvokedCallback is not enabled for the application in Set 'android:enableOnBackInvokedCallback="true"' in the application manifest as warning
I'm running my Android Application `Android-13, in the Logcat I'm seeing this warning, How to resolve this?
OnBackInvokedCallback is not enabled for the application.
Set 'android:enableOnBackInvokedCallback="true"' in the application manifest.
         
    
    
        FGH
        
- 2,900
- 6
- 26
- 59
                    27
                    
            votes
                
                3 answers
            
        Actionbar's onNavigationItemSelected(int position, long itemId) not triggered after horizontal swipe in Gingerbread
I have implemented Tab view as well as Horizontal swipe view(to change tabs) with Navigation mode as Lists for the application. I am using ActionBarSherlock & TabPageIndicator. I used fragments for reloading the contents after changing the tabs.
In…
         
    
    
        Ningan
        
- 291
- 2
- 4
                    24
                    
            votes
                
                3 answers
            
        Different fling (swipe) velocity on different Android devices with same density
I'm writing my own image viewer that enables users to swipe left\right to see the next\previous image. I want to animate the image change according to the fling velocity.
To detect a fling gesture and its velocity, I followed this basic gesture…
         
    
    
        Ron Tesler
        
- 1,146
- 1
- 11
- 24
                    18
                    
            votes
                
                2 answers
            
        MultiSelect gesture like Google Photos app
I want to implement multi select gesture in my app like in new Google Photos App here:
I have tried following this answer, but couldn't do this. Can anyone just guide me?
         
    
    
        Krupal Shah
        
- 8,949
- 11
- 57
- 93
                    18
                    
            votes
                
                1 answer
            
        Difference between onScroll() and onFling() of GestureDetector
What is the difference between onScroll() and onFling() in the GestureDetector interface?
When I print out the events they are showing the exact same things. At least the last onScroll() and the onFling().
The only true difference I noticed is that…
         
    
    
        Mulgard
        
- 9,877
- 34
- 129
- 232
                    14
                    
            votes
                
                3 answers
            
        How to implement a "Two Finger Drag" gesture on Android?
I am new to Android development and am working on an accessibility research project for blind people (Jelly Bean API level 17 project). I have been experimenting with some gestures and the Two-Finger-Drag gesture has been really tough to implement.…
         
    
    
        Adit Gupta
        
- 863
- 3
- 8
- 23
                    14
                    
            votes
                
                2 answers
            
        MotionEvent.getPointerCount() is always 1
I'm somehow getting unexpected results while trying to implement multitouch in my app. I'm never getting data for more than one pointer. 
Multitouch on my phone surely works, because I can pinch-zoom in browser and detect pinch gesture with…
         
    
    
        Axarydax
        
- 16,353
- 21
- 92
- 151
                    11
                    
            votes
                
                1 answer
            
        Android O - fingerprint gesture callback not working
I am testing on Pixel device with Fingerprint Gestures ON from accessibility. I am trying to get the gesture callbacks using FingerprintGestureController but never getting any gestures in return even after I turn the accessibility ON for this app…
         
    
    
        user531069
        
- 985
- 8
- 28
                    11
                    
            votes
                
                2 answers
            
        Wrong scale position after applying zoom effect on Android canvas
First of all this is a follow up question originally asked here, Pan, Zoom and Scale a custom View for Canvas drawing in Android
Since there was no answer yet, I finally solved my issue using the android-gesture-detectors
After applying the…
         
    
    
        Falling Into Infinity
        
- 697
- 3
- 13
- 34
                    11
                    
            votes
                
                2 answers
            
        Android drag and return to previous activity like Facebook and Google Photos
I have been finding a way to implement animation like Facebook and Google Photos. When in 2nd Activity, when dragging images the images follow and the 2nd Activity started to fade out and we see 1st Activity. Images of what I was trying to ask is…
         
    
    
        Songpol LoveThailand
        
- 141
- 1
- 5
                    11
                    
            votes
                
                3 answers
            
        How to zoom list item from center of pinch
I am working on a simple book reader app for Android. I have used the listview for this. 
What I am doing is loading the remote images from server into my Listview (Using the picasso library) and is working fine. 
I also wanted to zoom functionality…
         
    
    
        Qadir Hussain
        
- 8,721
- 13
- 89
- 124
                    11
                    
            votes
                
                2 answers
            
        GestureDetector.SimpleOnGestureListener. How do I detect an ACTION_UP event?
Using this
mGestureDetector = new GestureDetector(context, new GestureDetector.SimpleOnGestureListener() {
        @Override
        public boolean onSingleTapUp(MotionEvent e) {
            return true;
        }
Only detects for single tap event…
         
    
    
        Ersen Osman
        
- 7,067
- 8
- 47
- 80
                    10
                    
            votes
                
                1 answer
            
        rotation and scaling using multi touch in android
i want to rotate and scale the image on multi touch event,
i am able to drag, scale the image but i can't understand the rotation of image.
i am facing problem so please help me asap.
my code is there 
    public class Touch extends Activity…
         
    
    
        Ramesh Sudrasana
        
- 101
- 1
- 1
- 5