title: How to use same technique of css "negative margin" in a layout?
body: <p>I would like to create this kind of layout you see in the picture and I'm thinking like <strong>negative margin</strong> in CSS and no result. Please help me achieve it.
  <a href="https://i.stack.imgur.com/X3fEm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/X3fEm.png" alt="enter image description here"></a></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"
  xmlns:tools="http://schemas.android.com/tools"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  tools:context=".HomeActivity"&gt;
      &lt;TextView
      android:id="@+id/txt_home_title"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:background="@drawable/box"
      android:elegantTextHeight="true"
      android:padding="30dp"
      android:text="Welcome!"
      android:textColor="#ffffff"
      android:textSize="28sp"
      app:layout_constraintLeft_toLeftOf="parent"
      app:layout_constraintRight_toRightOf="parent"
      app:layout_constraintTop_toTopOf="parent" /&gt;
  &lt;FrameLayout
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_marginBottom="20dp"&gt;
      &lt;ImageView
          android:id="@+id/home_logo"
          android:layout_width="90dp"
          android:layout_height="80dp"
          android:scaleType="fitCenter"
          android:src="@drawable/mylogo" /&gt;
  &lt;/FrameLayout&gt;
  &lt;/android.support.constraint.ConstraintLayout&gt;
  </code></pre>
  
  <p>Here is the box:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;selector xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;item&gt;
          &lt;shape android:shape="rectangle"&gt;
              &lt;solid android:color="#2d3669"&gt;&lt;/solid&gt;
              &lt;corners android:radius="50dp"&gt;&lt;/corners&gt;
              &lt;gradient android:angle="90"
                  android:startColor="#392800"
                  android:endColor="#faae03"/&gt;
          &lt;/shape&gt;
      &lt;/item&gt;
  &lt;/selector&gt;
  </code></pre>
  
  <p>I know in <code>ConstraintLayout</code> how to have items near each other, but I can't figure it out how to put a log on a <code>TextView</code> so that half of it remains outside! I can't find a keyword that leads to such examples on Google.</p>