title: Android: gravity attribute on item drawable
body: <p>I want to achieve this kind of style</p>
  
  <p><a href="https://i.stack.imgur.com/JsHQ9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JsHQ9.png" alt="image1"></a></p>
  
  <p>As you can see, my background app is a texture so i need a transparent background and just a few pixels of gradient color at the bottom of the view.</p>
  
  <p>I used simply this to describe my background of EditText</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; 
  &lt;layer-list xmlns:android="http://schemas.android.com/apk/res/android"&gt;&gt;
       &lt;item
           android:gravity="bottom"
           android:height="2dp"
           android:drawable="@drawable/my_gradient"&gt;
       &lt;/item&gt; 
  &lt;/layer-list&gt;
  </code></pre>
  
  <p>It works well on Android 6.0 and Android M Preview but not on "older version" as Android 5.1.1</p>
  
  <p>API 23 and 22(M) versus API 22 and older rendering
  <a href="https://i.stack.imgur.com/Hj4XR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Hj4XR.png" alt="image2"></a></p>
  
  <p>I can't understand why my gravity attribute is not applied</p>