title: How to set an image as a RadioButton argument programmatically?
body: <p>I have a RadioGroup which consists of five RadioButtons. What I'd like to achieve is setting an image as a RadioButton argument. So far found this way:</p>
  
  <pre><code>radio0.setBackgroundResource(&lt;drawable ID, int&gt;);
  </code></pre>
  
  <p>but it gives something like this (descriptions "isSelected" added in an image editor):</p>
  
  <p><img src="https://i.stack.imgur.com/b7Bq0.png" alt="Background of RadioButton"></p>
  
  <ol>
  <li>Is there any way to programmatically set background properties and move the image to the right?</li>
  <li>Or maybe there is another way to set an image next to RadioButton instead of using it as a background image?</li>
  </ol>
  
  <p>I'm interested only in programmatical solutions, as the RadioGroup is cleared up and filled again during loop work.</p>