title: Android: Positioning buttons when turned from portrait to landscape
body: <p>I have a menu-activity, in which I have several positioned buttons. It fits my phone screen perfectly when in portrait mode, but in landscape mode it's destroyed. I know that when I have fixed positioning this will be the result. Can anyone tell me how to position my buttons so my activity keeps its form also in landscape mode? Thank you.</p>
  
  <p>Here is my xml file: </p>
  
  <pre><code>  &lt;?xml version="1.0" encoding="utf-8"?&gt;
   &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:orientation="vertical" &gt;
  
  
  &lt;Button
       android:layout_width="wrap_content"
       android:layout_height="wrap_content"
       android:background="@drawable/bezpecnost_over"
       android:layout_marginLeft="30dp"
       android:layout_marginTop="50dp"
  
  
        /&gt;
  
  &lt;Button
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:background="@drawable/kurenie_over"
      android:layout_marginLeft="200dp"
      android:layout_marginTop="50dp"
  
       /&gt;
  
    &lt;Button
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:background="@drawable/osvetlenie_over"
      android:layout_marginLeft="200dp"
      android:layout_marginTop="200dp" 
      android:onClick="obrOsv"    /&gt;
  
  
  &lt;Button
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
  
      android:background="@drawable/pohodlie_over"
      android:layout_marginLeft="30dp"
      android:layout_marginTop="200dp"
      /&gt;
  
   &lt;/RelativeLayout&gt;
  </code></pre>