title: Android: how to create a notification badge for an icon?
body: <p>I have an <code>ImageView</code> like this:</p>
  
  <pre><code>&lt;ImageView android:id="@+id/historyIcon"
      tools:src="@drawable/to_delete"
      android:scaleType="centerCrop"
      android:layout_alignParentLeft="true"
      android:layout_width="32dp"
      android:layout_height="32dp" /&gt;
  </code></pre>
  
  <p>How can I add a badge image on the top right corner of this <code>ImageView</code>? Is it possible to add a secondary image on the same <code>ImageView</code>?</p>
  
  <p>Example image:</p>
  
  <p><img src="https://i.stack.imgur.com/x3taa.png" alt="enter image description here"></p>