4

I want to implement gesture inside the Gridview item.

When i am doing double tap. have to show some animation Is that possible is Grid view, if possible Please guide me to do this

Please share some snippets Thanks

Joy
  • 102
  • 10

2 Answers2

2

Detecting a double tap gesture inside of a GridView item is described in this awesome post: Android: How to detect double-tap?

Community
  • 1
  • 1
Ben Groot
  • 5,040
  • 3
  • 40
  • 47
-1

Extend GestureDetector.SimpleOnGestureListener and override it's onDoubleTap() method

class DoubleTapGestureDetector extends GestureDetector.SimpleOnGestureListener {

        @Override
        public boolean onDoubleTap(MotionEvent e) {
            Log.d("TAG", "Double Tap Detected ...");
            return true;
        }

    }
vinay Maneti
  • 1,447
  • 1
  • 23
  • 31