title: Change the behaviour of a GridView to make it scroll horizontally rather than vertically
body: <p>I want to make a <code>UI</code> element like a <code>GridView</code>, I want it's complete functionality but want it to be horizontally scrollable rather than vertically.</p>
  
  <p>By horizontal scroll I mean it should be built that way and not put in a <code>HorizontalScrollView</code>.</p>
  
  <p>My would be <code>Custom GridView</code> will have fixed number of <code>rows</code> say <code>4-5</code> and the <code>columns</code> should be <code>extensible</code> based on number of items in the <code>Adapter</code>. You can think of it as the opposite of what the native <code>GridView</code> does, yet it should maintain the functionality.</p>
  
  <p>I have looked at the source code of how a <code>GridView</code> is implemented by Google, but I am able to understand very less and starting to make the <code>View</code> from scratch doesn't seem to be a good idea, since I am afraid I will not be able to do justice to memory optimization's the way Google did it. </p>
  
  <p>I had observed that <code>GridView</code> extends <code>AbsListView</code>, so my question is, is it <code>AbsListView</code> which lets a <code>GridView</code> scroll vertically and add items from the adapter, or is it <code>GridView</code> which adds the vertical scrolling ability? Should I tweak <code>GridView</code> or <code>AbsListView</code>?</p>
  
  <p>It would be even better to know if there's something which already does what I want to do?</p>
  
  <p>This has already been implemented in native Gallery and YouTube app of Android Honeycomb 3.1 and above. So if anyone has an idea, please elaborate.</p>
  
  <p><strong>Snapshot of Honeycomb Gallery app:</strong></p>
  
  <p><img src="https://i.stack.imgur.com/6MZ4p.png" alt="enter image description here"></p>
  
  <p><strong>Snapshot of Honeycomb YouTube app:</strong></p>
  
  <p><img src="https://i.stack.imgur.com/wd9hT.jpg" alt="enter image description here"></p>