title: How keep aspect ratio in bitmap drawable
body: <p>How I can keep aspect ratio if I am using gravity <code>fill_vertical</code> or <code>fill_horizontal</code>? In this code:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;bitmap xmlns:android="http://schemas.android.com/apk/res/android" 
      android:src="@drawable/_toogle_green"
      android:gravity="bottom|fill_vertical"
  /&gt;
  </code></pre>
  
  <p>bitmap fills vertical, but in horizontal keeps original width and aspect ratio is broken.</p>
  
  <p>I believe this question was asked, but I really can't find it, only for ImageView or ImageButton. But I need do that in drawables.</p>