title: Android Gallery Transition Between Images
body: <p>I have a gallery that shows the images of some playing cards. Each card is separated by 20dp.</p>
  
  <p>When I move from one image to the next, the gallery scrolls slightly beyond the next image, and subsequently corrects itself back to the image.</p>
  
  <p>Another issue, almost certainly related, is that the images are not scrolling past out of view cleanly. The images appear to be trying to either snap into full view, or to snap out of view entirely, causing manual scrolling to jerk the images side to side as I scroll.</p>
  
  <p>Any idea what may be causing this?</p>
  
  <p>Here is a screen recording of it: <a href="http://www.youtube.com/watch?v=Mvj4_48AW5Q&amp;feature=youtu.be" rel="nofollow">http://www.youtube.com/watch?v=Mvj4_48AW5Q&amp;feature=youtu.be</a></p>
  
  <p>Here is the xml for the gallery:</p>
  
  <pre><code>&lt;Gallery
  android:id="@+id/gallery"
  android:layout_width="fill_parent"
  android:layout_height="200dp" 
  android:scrollbars="none" 
  android:layout_below="@+id/button1" 
  android:layout_marginTop="60dp"
  android:spacing="20dp" 
  android:animationDuration="3000"
  /&gt;
  </code></pre>