title: Android how to change the radio button image programatically
body: <p>I have a radio button which I want to change the little selected icon based on a state, however its a simple on, off state.
  Basically I want to make it look like an LED, I have a red image and a green image and when it is checked I want it to be green and when it is not checked I want it to be red.</p>
  
  <p><img src="https://i.stack.imgur.com/38Iis.png" alt="Green">
  <img src="https://i.stack.imgur.com/pNFkl.png" alt="red"></p>
  
  <p>Currently the options I have tried, just stick the image in the background of the whole view, and not just the small circle area. like so </p>
  
  <p><img src="https://i.stack.imgur.com/QoDSz.jpg" alt="enter image description here"></p>
  
  <p>I have my two drawables generated from <a href="http://android-holo-colors.com/" rel="nofollow noreferrer">http://android-holo-colors.com/</a></p>
  
  <p>radio_red.png and radio_green.png</p>