title: Android: Horizontal Image Gridview/Scroll?
body: <p>Have any of you tried out any Horizontal Scrolls/Gridviews to display Images similar to the Facebook mobile image viewer that allows the user to scroll images horizontal one after the other. The android gallery is another example. </p>
  
  <p>I tried to implement this using <a href="https://blahti.wordpress.com/2012/05/14/horizontal-scrolling-pages/" rel="nofollow">THIS</a> tutorial but I didn't get the desired output. Any other codes and layouts you guys have tried? </p>
  
  <p>EDITED:
  What I basically want is to implement a horizontal scrolling of images as seen on <a href="http://ak1.polyvoreimg.com/cgi/img-set/cid/121650774/id/tOf8HXLY4xG-WIrhBhFvvQ/size/y.jpg" rel="nofollow">THIS</a> image. As you can see the gridview displays image one after the other. That tutorial caused some errors therefore I didn't continue with it.</p>
  
  <p>I tried the following layout</p>
  
  <p><strong>XML Layout:</strong></p>
  
  <pre><code>&lt;android.support.v4.view.ViewPager
   android:id="@+id/pager"
   android:layout_width="match_parent"
   android:layout_height="0px"
   android:layout_weight="1"&gt;
   &lt;/android.support.v4.view.ViewPager&gt;
  </code></pre>