title: Android - How to edit the size of an image for using as an icon via XML
body: <p>I have a big image that will be used eventually as an icon for an Action bar. So, I would like to reduce its size before that.</p>
  
  <p>How can I do that via XML?</p>
  
  <p>styles.xml:</p>
  
  <pre><code>&lt;style name="AppTheme" parent="android:style/Theme.Holo.Light"&gt;
      &lt;item name="android:actionBarStyle"&gt;@style/actionBarStyle&lt;/item&gt;
  &lt;/style&gt;
  
  &lt;style name="actionBarStyle" parent="android:style/Widget.Holo.Light.ActionBar"&gt;
      &lt;item name="android:background"&gt;@drawable/shape_gradient_action_bar&lt;/item&gt;
      &lt;item name="android:displayOptions"&gt;showHome&lt;/item&gt;
      &lt;item name="android:icon"&gt;@drawable/icon&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p></p>
  
  <p>icon.xml:</p>
  
  <pre><code>&lt;bitmap xmlns:android="http://schemas.android.com/apk/res/android" 
      android:src="@drawable/ford_dtect_logo_on_white"
      android:width="50dp"    -- Doesn't work
      android:height="50dp" &gt; -- Doesn't work
  &lt;/bitmap&gt;
  </code></pre>
  
  <p>Thanks in advance.</p>