title: android: gridview
body: <p>I have make a gridview in which i have added images . But my problem is that it is showing very small size of gridview with only 3 images in it like in the picture and i want to show 9 images in it.</p>
  
  <p><img src="https://i.stack.imgur.com/IWdP2.png" alt="enter image description here">s </p>
  
  <p>But i want that the gridview size to be fill parent that is below photos and above bottom scroll bar.</p>
  
  <p>I am using the following xml for it </p>
  
  <pre><code>                &lt;RelativeLayout android:layout_height="fill_parent"
          android:layout_width="fill_parent" android:layout_above="@+id/LinearLayouToolbar"
          android:layout_below="@+id/linearLayout3"&gt;
          &lt;ScrollView android:layout_height="200dp"
              android:layout_width="320dp" android:id="@+id/scrollView1"
              android:layout_alignParentTop="true" android:layout_alignParentLeft="true"&gt;
  
  
  
              &lt;GridView android:horizontalSpacing="10dp"
                  android:columnWidth="80dp" android:verticalSpacing="20dp"
                  android:stretchMode="columnWidth" android:padding="10dp"
                  android:id="@+id/GridView01" android:fastScrollEnabled="true"
                  android:layout_gravity="fill|center" android:numColumns="auto_fit"
                  android:layout_marginBottom="0dp" android:layout_width="wrap_content"
                  android:layout_height="wrap_content"&gt;&lt;/GridView&gt;
          &lt;/ScrollView&gt;
      &lt;/RelativeLayout&gt;
  </code></pre>