문제

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

도움이 되었습니까?

해결책

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

다른 팁

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;
        }

    }
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top