Android gallery fling
<p>I'm using gallery view to display list of images images in full screen, when I scroll the view, It scrolling so fast. So I override gallery onTouch mentod</p>

<pre><code>public boolean onTouch(View v, MotionEvent event) {
    switch(event.getAction()){
        case MotionEvent.ACTION_DOWN: {
            downX = event.getX();
            downY = event.getY();
            return true;
        }
        case MotionEvent.ACTION_UP: {
            upX = event.getX();
            upY = event.getY();

            float deltaX = downX - upX;
            float deltaY = downY - upY;

            // swipe horizontal?
            if(Math.abs(deltaX) &gt; 100){
                // left or right
                if(deltaX &lt; 0) { 

                    //this.onLeftToRightSwipe();
                    return true; 
                    }
                if(deltaX &gt; 0) { 
                    Animation slideLeftOut = AnimationUtils.loadAnimation(this, R.anim.slide_left_out);
                    this.mGallery.startAnimation(slideLeftOut);
                    //this.onRightToLeftSwipe();
                    picPosition = picPosition + 1;
                    Animation slideLeftIn = AnimationUtils.loadAnimation(this, R.anim.slide_left_in);
                    this.mGallery.startAnimation(slideLeftIn);
                    mGallery.setSelection(picPosition, true);

                    return true;
                }
            }
        }
    }

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

<p>When I use this snippet, Its display image one by one but scrolling is looking very strange. I don't know how to achieve this with smooth scrolling. I'm struggling  more, anyone help out from this please...</p>
