title: Make android activity fit all screen sizes
body: <p>This is the XML file for my activity.</p>
  
  <p>How do I make this fit all screen sizes without the image button getting messed up!</p>
  
  <p>I am using a <strong>relative-layout</strong>, should I use a <strong>linear-layout</strong> instead?</p>
  
  <p>Following is my code.</p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:tools="http://schemas.android.com/tools"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:paddingBottom="@dimen/activity_vertical_margin"
  android:paddingLeft="@dimen/activity_horizontal_margin"
  android:paddingRight="@dimen/activity_horizontal_margin"
  android:paddingTop="@dimen/activity_vertical_margin"
  tools:context=".MainActivity" 
  android:background="@drawable/good"&gt;
  
  &lt;ImageButton
      android:id="@+id/ImageButton03"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignLeft="@+id/imageButton1"
      android:layout_alignTop="@+id/ImageButton01"
      android:background="@drawable/btn_blue"
      android:src="@drawable/plus" 
      android:onClick="NewCategory"/&gt;
  
  &lt;ImageButton
      android:id="@+id/ImageButton01"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignLeft="@+id/ImageButton02"
      android:layout_below="@+id/ImageButton02"
      android:layout_marginTop="29dp"
      android:background="@drawable/btn_blue"
      android:src="@drawable/plus"
      android:onClick="NewItem" /&gt;
  
  &lt;ImageButton
      android:id="@+id/ImageButton04"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_above="@+id/ImageButton01"
      android:layout_alignLeft="@+id/ImageButton03"
      android:background="@drawable/btn_blue"
      android:src="@drawable/call" /&gt;
  
  &lt;Button
      android:id="@+id/button1"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignParentLeft="true"
      android:layout_alignParentRight="true"
      android:layout_alignParentTop="true"
      android:text="سـوبر ماركت التنـور"
      android:textSize="40dp"
      android:background="@drawable/btn_red"
      android:textColor="@color/white" /&gt;
  
  &lt;ImageButton
      android:id="@+id/imageButton1"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignRight="@+id/button1"
      android:layout_below="@+id/button1"
      android:layout_marginTop="24dp"
      android:background="@drawable/btn_blue"
      android:onClick="ViewAllCategories"
      android:src="@drawable/cart" /&gt;
  
  &lt;ImageButton
      android:id="@+id/ImageButton05"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_above="@+id/ImageButton02"
      android:layout_alignLeft="@+id/button1"
      android:background="@drawable/btn_blue"
      android:onClick="CreateNewUserAccount"
      android:src="@drawable/user" /&gt;
  
  &lt;ImageButton
      android:id="@+id/ImageButton02"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignLeft="@+id/ImageButton05"
      android:layout_below="@+id/imageButton1"
      android:layout_marginTop="33dp"
      android:background="@drawable/btn_blue"
      android:onClick="joinfacebook"
      android:src="@drawable/f" /&gt;
  </code></pre>
  
  <p></p>