title: ViewPager do not behave elastically or get stuck in Views
body: <p>I am working on <code>ViewPager</code> but a surprising problem comes up. </p>
  
  <p>The <code>ViewPager</code> when scrolled to get next page, it <strong>got stuck</strong> <strong>if I take my finger off from screen</strong>, but normally the view should bounce back or next view should come up which it does not. Instead, <code>ViewPager</code> keep stuck in middle of both. I am loading bitmaps via <code>AsyncTask</code> and if I scroll fast there is no problem in loading bitmaps.</p>
  
  <p>Here is preview of what I am trying to say -
  <img src="https://i.stack.imgur.com/Q8ST0.png" alt="enter image description here">
  (different color boxes are different screenshot combined in one image)</p>
  
  <p>So if I leave picture while changing view, it just get stuck there, no bounce back or next view untill i manually scroll it. Here is <code>ViewPager</code> XML</p>
  
  <pre><code>&lt;android.support.v4.view.ViewPager
      android:id="@+id/albumArt"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:adjustViewBounds="true"
      android:maxHeight="220dp"
      android:scaleType="fitXY"
      android:layout_alignParentRight="true"
      android:layout_alignParentEnd="true"
      android:layout_alignParentLeft="true"
      android:layout_alignParentStart="true"
      android:layout_alignParentTop="true" /&gt;
  </code></pre>
  
  <p>And here is the code I am using: <a href="http://developer.android.com/training/displaying-bitmaps/display-bitmap.html" rel="nofollow noreferrer">http://developer.android.com/training/displaying-bitmaps/display-bitmap.html</a></p>
  
  <p>Thanks for giving your time and ask me if any further code required.</p>
  
  <p>Cheers</p>