title: Android - How can I set single layout for multiple screens
body: <p>I am a beginner. I am developing an application where am facing a strange problem with layout.
  WHen I run my application in small devices it works fine, but when I run it on big screen device its layout properties changes automatically. 
  Please let me know if there is any way that I can create a single layout programatically for all screen sizes?
  my xml is,</p>
  
  <pre><code>&lt;RelativeLayout android:id="@+id/contents"
              android:layout_width="match_parent" 
              android:layout_height="wrap_content" &gt;
  
              &lt;ImageButton
                  android:id="@+id/imgBtn1"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_margin="10dp"
                  android:background="@drawable/panchangtab1" /&gt;
  
              &lt;ImageButton
                  android:id="@+id/imgBtn2"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_margin="10dp"
                  android:layout_toRightOf="@+id/imgBtn1"
                  android:background="@drawable/horoscopetab1" /&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>here I am getting first image ok but second image is not in actual size. </p>