title: How to to resize grid images based on screen size?
body: <p>I have a grid layout with image and text view..</p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_height="match_parent"
      android:layout_width="match_parent"
      android:background="@drawable/bg"&gt;
  
      &lt;GridView xmlns:android="http://schemas.android.com/apk/res/android"
          android:id="@+id/gridView"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
          android:numColumns="2"
          android:columnWidth="90dp"
          android:horizontalSpacing="10dp"
          android:verticalSpacing="10dp"
          android:gravity="center"
          android:stretchMode="columnWidth" &gt;
  
      &lt;/GridView&gt;
  
      &lt;RelativeLayout
           android:layout_width="match_parent"
           android:layout_height="55dp"
           android:id="@+id/testheader"
           android:gravity="center"
           android:layout_alignParentBottom="true" &gt;
       &lt;/RelativeLayout&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>layout:</p>
  
  <pre><code>&lt;RelativeLayout
  
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_weight="20"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
  
      android:padding="5dp"&gt;
  
      &lt;ImageView
          android:id="@+id/img"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:baselineAlignBottom="false"
          android:visibility="visible"
          android:layout_gravity="center"
          android:textAlignment="center"&gt;
      &lt;/ImageView&gt;
  
      &lt;TextView
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:textAlignment="center"
          android:id="@+id/txt"
          android:layout_gravity="center"
          android:gravity="center_horizontal"
  
          android:layout_alignParentTop="true"
          android:layout_centerHorizontal="true"
          android:layout_marginTop="101dp"
          android:textStyle="bold"
          android:textColor="#3a08ff"
  
          android:textSize="10dip" /&gt;
  
  
  
  
  
      &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>There seems no problem when i view it in small screen size device. But when i view the same in larger device the image view looks so smaller. How can i overcome it?</p>