title: Use Drawable width as a value in Android Layout XML
body: <p>Is there any way to use the width/height of a <code>Drawable</code> as a value for any layout attributes?</p>
  
  <p>Specifically I want to add a padding to my <code>View</code> that is the same length as the width of a <code>Drawable</code>.</p>
  
  <p>I am aware this can be done by code but I am trying to see if it can be done in XML.</p>
  
  <p>Thanks</p>