title: How to add Layout on top of another Layout?
body: <p>My English is poor. So I threw off the video. I think any programmer looking at this will understand the reason. Thank you in advance </p>
  
  <p>I want to learn how to use ReleaseativeLayout correctly, because ConstainLayout is very buggy. Even using it in Android Studio Canary.</p>
  
  <p>So I'm using ReleativeLayout and LineartLayout now. These are the most effective ViewGroup. I thought. But it turned out all wrong</p>
  
  <p><a href="https://i.stack.imgur.com/oak4N.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oak4N.gif" alt="enter image description here"></a></p>
  
  <hr>
  
  <p>XML Code</p>
  
  <pre><code>&lt;RelativeLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:gravity="center"
      android:theme="@style/ThemeOverlay.AppCompat.Dark"
      android:background="@drawable/login_faggot"&gt;
  
      &lt;TextView
          android:gravity="center_horizontal"
          android:layout_above="@+id/plsLogin"
          android:text="Welcome."
          android:textSize="18sp"
          android:textColor="@color/white"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"/&gt;
      &lt;TextView
          android:layout_marginBottom="25dp"
          android:textSize="16sp"
          android:textColor="@color/grayBg"
          android:gravity="center_horizontal"
          android:id="@+id/plsLogin"
          android:layout_above="@+id/editLogin"
          android:text="Please Login."
          android:layout_width="match_parent"
          android:layout_height="wrap_content"/&gt;
  
      &lt;TextView
          android:background="@color/white"
          android:layout_alignLeft="@+id/editLogin"
          android:layout_alignBaseline="@+id/editLogin"
          android:layout_marginStart="50dp"
          android:layout_width="1dp"
          android:layout_height="wrap_content"/&gt;
      &lt;TextView
          android:background="@color/white"
          android:layout_alignLeft="@+id/editPass"
          android:layout_alignBaseline="@+id/editPass"
          android:layout_marginStart="50dp"
          android:layout_width="1dp"
          android:layout_height="wrap_content"/&gt;
      &lt;EditText
          android:paddingStart="20dp"
          android:drawableStart="@drawable/ic_mail_white_24dp"
          android:drawablePadding="15dp"
          android:hint="@string/user_name"
          android:layout_alignStart="@+id/buttonLogin"
          android:layout_alignEnd="@+id/buttonLogin"
          android:layout_above="@+id/editPass"
          android:id="@+id/editLogin"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"/&gt;
      &lt;EditText
          android:drawableStart="@drawable/ic_lock_white_24dp"
          android:paddingStart="20dp"
          android:drawablePadding="15dp"
          android:hint="@string/password"
          android:layout_alignEnd="@+id/buttonLogin"
          android:layout_alignStart="@+id/buttonLogin"
          android:layout_above="@+id/linearLayout"
          android:id="@+id/editPass"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"/&gt;
  
      &lt;LinearLayout
          android:layout_marginStart="15dp"
          android:id="@+id/linearLayout"
          android:layout_above="@+id/buttonLogin"
          android:layout_alignEnd="@+id/buttonLogin"
          android:layout_alignStart="@+id/buttonLogin"
          android:layout_width="match_parent"
          android:layout_marginBottom="50dp"
          android:layout_height="wrap_content"&gt;
          &lt;CheckBox
              style="@style/Widget.AppCompat.CompoundButton.RadioButton"
              android:id="@+id/radioButton"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="Remember Me"
              android:paddingStart="15dp"
              android:textColor="@color/white"/&gt;
  
          &lt;TextView
              android:visibility="invisible"
              android:id="@+id/textView"
              android:textColor="@color/white"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:gravity="end"
              android:text="Forgot Password"/&gt;
      &lt;/LinearLayout&gt;
  
      &lt;android.support.v7.widget.AppCompatButton
          android:id="@+id/buttonLogin"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_marginEnd="30dp"
          android:layout_marginStart="30dp"
          android:background="@drawable/button_round_corner"
          app:backgroundTint="@color/colorOrangeUsSite"
          android:text="@string/login"
          android:textColor="@color/white"/&gt;
  
      &lt;FrameLayout
          android:background="@color/black"
          android:alpha="0.8"
          android:visibility="gone"
          android:id="@+id/layoutProgressBar"
          android:layout_width="match_parent"
          android:layout_height="match_parent"&gt;
          &lt;ProgressBar
              android:theme="@style/ProgressBar"
              android:layout_gravity="center"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"/&gt;
      &lt;/FrameLayout&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>