Why doesn't this GestureDetector work?
<p>I want to detect fling-gestures on a RelativeLayout called belowContainer, my code looks like this:</p>

<pre><code>    // Create a new GestureListener
    GestureDetector.SimpleOnGestureListener gestureListener = new GestureDetector.SimpleOnGestureListener() {

        @Override
        public boolean onFling(MotionEvent e1, MotionEvent e2,
                float velocityX, float velocityY) {
            Log.d("test", "velocityx=" + velocityX);
            return true;

        }

    };

    // Setup a new GestureDetector, attach the custom GestureListener
    final GestureDetector gestureDetector = new GestureDetector(this, gestureListener);

    // Attach the GestureDetector to the belowContainer onTouchListener
    belowContainer.setOnTouchListener(new View.OnTouchListener() {
        @Override
        public boolean onTouch(View view, MotionEvent event) {
            Log.d("test", "clicked!");
            if(gestureDetector.onTouchEvent(event))  {
                Log.d("test", "gesture detected");
                return true;
            }

            return false;
        }
    });
</code></pre>

<p>My app registers the belowContainer onTouch fine, but somehow the fling gesture does not get detected (the log just shows "clicked!" and nothing else). How come?</p>
