title: ConstraintLayout margins
body: <p>I have a simple layout.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;android.support.constraint.ConstraintLayout 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="wrap_content"
      android:background="@color/colorDarkGray"&gt;
  
  
      &lt;RelativeLayout
          android:id="@+id/container3"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_marginBottom="8dp"
          android:layout_marginStart="8dp"
          android:layout_marginLeft="8dp"
          android:layout_marginRight="8dp"
          android:layout_marginEnd="8dp"
          android:layout_marginTop="8dp"
          app:layout_constraintBottom_toBottomOf="parent"
          app:layout_constraintStart_toStartOf="parent"
          app:layout_constraintEnd_toEndOf="parent"
          app:layout_constraintTop_toTopOf="parent"&gt;
  
          &lt;TextView
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_centerVertical="true"
              android:alpha="0.7"
              android:fontFamily="sans-serif"
              android:letterSpacing="0.03"
              android:text="Another text"
              android:textColor="@color/colorWhite"
              android:textSize="11sp"
              android:textStyle="normal" /&gt;
  
          &lt;TextView
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_alignParentRight="true"
              android:layout_centerVertical="true"
              android:fontFamily="sans-serif"
              android:letterSpacing="0.03"
              android:text="Some text"
              android:textColor="@color/colorWhite"
              android:textSize="11sp"
              android:textStyle="normal" /&gt;
      &lt;/RelativeLayout&gt;
  &lt;/android.support.constraint.ConstraintLayout&gt;
  </code></pre>
  
  <p>In design view, it looks so <a href="https://i.stack.imgur.com/zRw6h.png" rel="noreferrer"><img src="https://i.stack.imgur.com/zRw6h.png" alt="looks so"></a>
  As you can see there is no left and right margins. Top and bottom margins work well. If I remove left or right margin my relative layout moves beyond the screen a bit.
  Guess I can do it without a relative layout at all, BUT I'm interested why that happened.</p>