문제

What is the difference with this two methods?

@Override
        public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX,
                float velocityY) {
            return super.onFling(e1, e2, velocityX, velocityY);
        }

@Override
        public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX,
                float velocityY) {
            return true;
        }

the second onFling return true and first return its method, what is the difference of this two and which of this two is the best practice in returning onFling?

도움이 되었습니까?

해결책

It is based on your requirement. If you don't want the android frame work to handle onFling , return true.

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