title: Set border for view with an icon in the corner
body: <p>I would like to add a border to view which to have an icon in the corner like this:</p>
  <p><a href="https://i.stack.imgur.com/0lov9.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0lov9.jpg" alt="enter image description here" /></a></p>
  <p>I write a drawable with border:</p>
  <pre><code>&lt;shape xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
  android:shape=&quot;rectangle&quot; &gt;
  &lt;solid android:color=&quot;@android:color/transparent&quot; /&gt;
  &lt;stroke
      android:width=&quot;2dp&quot;
      android:color=&quot;#F62626&quot;
      android:dashWidth=&quot;3dp&quot;
      android:dashGap=&quot;7dp&quot; /&gt;
  </code></pre>
  
  <p>but I can't add icon in the corner. Thanks for every answers<a href="https://i.stack.imgur.com/0lov9.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0lov9.jpg" alt="enter image description here" /></a>.</p>