title: How to place a rectangular image background to a button in Android?
body: <p>I am working on an Android GUI, and I want to place some <strong>buttons with image backgrounds</strong> on a vertical linear layout. I designed button graphics and saved it in .png format. Then, I created a new Android Icon set which will be later related with a button or an imagebutton view.</p>
  
  <p><img src="https://i.stack.imgur.com/ltzzO.png" alt="enter image description here"> </p>
  
  <p>I can only select "launcher icon" because notification, actionbar, menu type of icons are not suitable (they are not color at first).</p>
  
  <p>When I select "Center" option, my button images do not fully cover the button area. So I cannot align button images appropriately. When I select "crop" option, my button image is cropped and is no longer a rounded rectangle as I desire.</p>
  
  <p><img src="https://i.stack.imgur.com/3sMgN.png" alt="The image in bottom is croped, the others are centered"></p>
  
  <p>What can I do? Thanks for your patience in reading, it may be longer than necessary.</p>