title: Create a custom background drawable for a EditText
body: <p>I'm trying to set a custom drawable to a EditText as expected below:</p>
  
  <p><a href="https://i.stack.imgur.com/BFI8U.png" rel="noreferrer"><img src="https://i.stack.imgur.com/BFI8U.png" alt="except"></a></p>
  
  <p>So I wrote this custom drawable:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;layer-list xmlns:android="http://schemas.android.com/apk/res/android"
  
          android:paddingBottom="12dp"
          android:paddingLeft="36dp"
          android:paddingRight="12dp"
          android:paddingTop="12dp"&gt;
  &lt;item&gt;
      &lt;shape&gt;
          &lt;corners android:radius="6dp"/&gt;
          &lt;solid android:color="@android:color/white"/&gt;
          &lt;stroke
              android:width="1dp"
              android:color="#BBBBBB"/&gt;
      &lt;/shape&gt;
  &lt;/item&gt;
  &lt;item
      android:width="32dp"
      android:gravity="left"&gt;
      &lt;shape android:shape="rectangle"&gt;
          &lt;size android:width="32dp"/&gt;
          &lt;corners
              android:bottomLeftRadius="6dp"
              android:topLeftRadius="6dp"/&gt;
          &lt;solid android:color="#AAAAAA"/&gt;
      &lt;/shape&gt;
  &lt;/item&gt;
  &lt;item android:left="8dp"&gt;
      &lt;bitmap
          android:gravity="left"
          android:src="@drawable/ic_email"
          android:tileMode="disabled"/&gt;
  &lt;/item&gt;
  &lt;/layer-list&gt;
  </code></pre>
  
  <p>The result in preview is quite good (except different corner size, not handled by Android Studio)</p>
  
  <p><a href="https://i.stack.imgur.com/fMb6d.png" rel="noreferrer"><img src="https://i.stack.imgur.com/fMb6d.png" alt="result in preview"></a></p>
  
  <p>But in device, it totally not works...
  The second item is stretched and does not respect the width attribute.</p>
  
  <p><a href="https://i.stack.imgur.com/a5rxx.png" rel="noreferrer"><img src="https://i.stack.imgur.com/a5rxx.png" alt="result in device"></a></p>
  
  <p>I know, I can do it with a 9-patch, but I want to know if is it possible with drawables?</p>