Android ListView: overriding causes scrolling do not executed?

Have you tried calling super. OnTouchEvent(event) in your onTouchEvent method? Edit I think you want to return false as well in your onScroll method Then your onTouchEvent method should be: Override public boolean onTouchEvent(MotionEvent event) { if (gestureDetector.

OnTouchEvent(event)) { return true; } return super. OnTouchEvent(event); }.

Have you tried calling super. OnTouchEvent(event) in your onTouchEvent method? Edit - I think you want to return false as well in your onScroll method.

Then your onTouchEvent method should be: @Override public boolean onTouchEvent(MotionEvent event) { if (gestureDetector. OnTouchEvent(event)) { return true; } return super. OnTouchEvent(event); }.

Excellent! Returning false in onScroll() is declaring event not consumed, so onTouchEvent() can forward event to superclass. It works.

Thank you very much! :) – Giorgio Vespucci Mar 11 at 8:45.

I want to know if user is scrolling up or down. I have began to override the OnGestureListener.onScroll() method and set my GestureDetector for the ListView. Debugging I noticed that it passes from onTouchEvent() but not from onScroll() and the scroll is not perfomed anymore by the ListView.

What am I doing wrong?

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions