title: Placing an image on the top left of another image using Constraint Layout
body: <p>I'm trying to place an icon top left of an image using Constraint Layout but it needs to be offset from the center of its sides. Like in the pictures:</p>
  
  <p>This is what I've got so far:</p>
  
  <h2>  <a href="https://i.stack.imgur.com/13b4K.png" rel="noreferrer"><img src="https://i.stack.imgur.com/13b4K.png" alt="This is what I&#39;ve got so far"></a></h2>
  
  <p>This is the end goal:</p>
  
  <h2>  <a href="https://i.stack.imgur.com/ovvjo.png" rel="noreferrer"><img src="https://i.stack.imgur.com/ovvjo.png" alt="This is the end goal"></a></h2>
  
  <p>and this is my xml file:</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"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:background="@color/grey_500"&gt;
  
      &lt;ImageView
          android:id="@+id/iv_landscape_art"
          android:layout_width="240dp"
          android:layout_height="150dp"
          android:layout_marginTop="48dp"
          android:elevation="2dp"
          android:adjustViewBounds="true"
          android:scaleType="centerCrop"
          android:background="@android:color/white"
          app:layout_constraintTop_toTopOf="parent"
          app:layout_constraintStart_toStartOf="parent"
          app:layout_constraintEnd_toEndOf="parent"/&gt;
  
      &lt;ImageView
          android:id="@+id/iv_sold_icon"
          android:layout_width="32dp"
          android:layout_height="32dp"
          android:adjustViewBounds="true"
          android:background="@color/colorPrimary"
          android:elevation="4dp"
          android:scaleType="fitXY"
          app:layout_constraintTop_toTopOf="@+id/iv_landscape_art"
          app:layout_constraintStart_toStartOf="@id/iv_landscape_art"
          app:layout_constraintEnd_toStartOf="@+id/iv_landscape_art"
          app:layout_constraintBottom_toTopOf="@+id/iv_landscape_art"/&gt;
  </code></pre>
  
  <p>How do I accomplish that?</p>