title: How to get an icon to show up next to text in Android Material Buttons?
body: <p>I'm trying to use the Material Button as developed by google. Due to a third party dependency I cannot use the androidx repository, so I'm currently using the android support library (v28.0.0-alpha1, alpha3 did not allow me to use the material button)</p>
  
  <p>I'm trying to achieve this a wide button with centered text + icon next to text:</p>
  
  <p><a href="https://i.stack.imgur.com/oWTP8.png" rel="noreferrer"><img src="https://i.stack.imgur.com/oWTP8.png" alt="Material Button, icon next to text."></a></p>
  
  <p>But all I can get is this, centered text with icon on the edge of the button:</p>
  
  <p><a href="https://i.stack.imgur.com/ZuHU8.png" rel="noreferrer"><img src="https://i.stack.imgur.com/ZuHU8.png" alt="Material Button, icon next to button border"></a></p>
  
  <p>This is the same as the original android button, which suffered from the same problem. The idea was that the Material Button would solve this issue, but it doesn't seem to work for me on 28.0.0-alpha1</p>
  
  <p>There are solutions involving making a textview with compounddrawables and drawing a frame around it, but I'd like to stick to the material button if possible.</p>
  
  <p>Anyone got a clue on how to fix this?</p>