Android: detecting fling gestures?

Take the MotionEvent from Activity not from your View. When your Gesture detector is based on MotionEvent that comes from Activity you will get the onFling event. So you have to move onTouchEvent() from your GestureScrollView to your Activity class.

Regards!

1 Thanks for taking the time to answer. Actually it was something way more complicated than that. Android's Event bubbling mechanism is a bit weird.

What solved it for me was getting onTouchEvent() to always return true like so: @Override public boolean onTouchEvent(MotionEvent event) { gd. OnTouchEvent(event); return true; } And add an extra method : @Override public boolean onInterceptTouchEvent(MotionEvent ev) { return gd. OnTouchEvent(ev); } Regards.

– javito Dec 20 '09 at 11:16 @javito can't you post you correct code as an answer please - kind of a tricky case that isn't well documented – Elemental May 31 at 21:58 @javito +1 on your question for figuring this one out. It helped me steal events from my scroll view as well – Maudicus Dec 1 at 21:14.

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