title: How can use horizontal scrollbar of gridview in android?
body: <pre><code>&lt;GridView
  android:id="@+id/gridView1"
  android:layout_width="wrap_content"
  android:layout_height="match_parent"
  android:columnWidth="100dip"
  android:numColumns="8"
  android:scrollbarStyle="insideOverlay"
  android:scrollbars="vertical|horizontal"
  android:stretchMode="none" &gt;
  &lt;/GridView&gt;
  </code></pre>
  
  <p>i want to use both vertical and horizontal scrollbar in gridview as seen above.
  i saw the vertical one does work well, but the horizontal one does not.
  so i tried to fix it by placing the gridview under the Horizontal Scroll View as like below</p>
  
  <pre><code>    &lt;HorizontalScrollView
          android:id="@+id/horizontalScrollView1"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content" &gt;
  
          &lt;GridView
              android:id="@+id/gridView1"
              android:layout_width="wrap_content"
              android:layout_height="match_parent"
              android:columnWidth="100dip"
              android:numColumns="8"
              android:scrollbarStyle="insideOverlay"
              android:scrollbars="vertical|horizontal"
              android:stretchMode="none" &gt;
          &lt;/GridView&gt;
  
      &lt;/HorizontalScrollView&gt;
  </code></pre>
  
  <p>even worse, it displays just one column of gridview and of course, there is no horizontal scrollbar.</p>
  
  <p>How can i fix it?</p>