title: Android - Switch track height
body: <p>I want to have a custom Switch which I can define the <em>Thumb</em> and <em>Track</em> drawables. </p>
  
  <p>Setting the <em>thumb</em> (no problem here):</p>
  
  <pre><code>android:thumb="@drawable/switch_button_selector"
  </code></pre>
  
  <p>Setting the <em>track</em>:</p>
  
  <pre><code>android:track="@drawable/switch_bg"
  </code></pre>
  
  <p><em>switch_bg</em> is a drawable (image) on res/drawable folder and it is not a 9 patch image.</p>
  
  <p>Happens that this drawable is being resized in height.</p>
  
  <p>I want to keep its original size (width/height) without stretching the drawable.</p>
  
  <p><strong>Note:</strong> The <em>thumb</em> is bigger (in height) than the <em>track</em>.</p>