title: How to place buttons correctly in a layout - android
body: <p>In my android app I have three buttons below. The problem I have is that these buttons are too close together and if I try to move one of them away then they all follow. Maybe because I state which button should go below who but I want to know if there's a way in my xml code to create a gap between these buttons?</p>
  
  <p><a href="https://i.stack.imgur.com/A3CT6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/A3CT6.png" alt="enter image description here"></a></p>
  
  <p>Code:</p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical"
      tools:context=".MainActivity"
      android:background="@drawable/brick_wall"&gt;
  
      &lt;TextView
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="Tic Tac Toe "
          android:layout_centerHorizontal="true"
          android:paddingTop="50dp"
          app:fontFamily="@font/balloon_extra_bold"
          android:textSize="50sp"
          android:textColor="@color/colorPrimaryLight" /&gt;
  
          &lt;Button
              android:id="@+id/button_players1"
              android:layout_width="143dp"
              android:layout_height="30dp"
              android:layout_centerHorizontal="true"
              android:layout_centerVertical="true"
              android:background="@drawable/app_buttons"
              android:fontFamily="@font/balloon_extra_bold"
              android:gravity="center"
              android:text="1 Player"
              android:textColor="@color/black"
              android:textSize="20sp" /&gt;
  
      &lt;Button
          android:id="@+id/button_players2"
          android:layout_width="145dp"
          android:layout_height="30dp"
          android:layout_below="@id/button_players1"
          android:layout_centerHorizontal="true"
          android:layout_centerVertical="true"
          android:background="@drawable/app_buttons"
          android:fontFamily="@font/balloon_extra_bold"
          android:gravity="center"
          android:text="2 Players"
          android:textColor="@color/black"
          android:textSize="20sp" /&gt;
  
  
      &lt;Button
          android:id="@+id/button_how_to_play"
          android:layout_width="148dp"
          android:layout_height="30dp"
          android:layout_below="@id/button_players2"
          android:layout_centerHorizontal="true"
          android:layout_centerVertical="true"
          android:background="@drawable/app_buttons"
          android:fontFamily="@font/balloon_extra_bold"
          android:gravity="center"
          android:text="How to Play"
          android:textColor="@color/black"
          android:textSize="20sp" /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>