title: Making Android src image resource fill button area
body: <p>I have the following XML: </p>
  
  <pre><code>&lt;ImageButton
      android:id="@+id/SwapTextButton"
      android:layout_width="match_parent"
      android:layout_height="45dp"
      android:layout_weight="0.5"
      android:background="@drawable/my_gradient_button"
      android:scaleType="fitCenter"
      android:src="@drawable/extended_text" /&gt;
  </code></pre>
  
  <p>And it outputs a button which looks like this: </p>
  
  <p><img src="https://s21.postimg.org/5kv8dxb7r/textsosmall.png" alt="Button text too small"></p>
  
  <p>Is there any way to increase the size which the src resource takes up? By that I mean maintain the src within the area of the button, but make it larger than it is now. </p>
  
  <p>I have tried changing the scaleType, but any other setting causes the src resource to display parts of itself outside the button boundary (aka it becomes too large). </p>
  
  <p>I've had a research and there seems to be solutions based in java, but ideally I'd like to keep the solution in xml too. </p>
  
  <p>Can someone suggest a fix/point me in the right direction?</p>
  
  <p>Thanks</p>