title: Android: How to set button image of button in application
body: <p>Currently I have this:  front_card_display.setBackgroundResource(R.drawable.large_card_0);</p>
  
  <p>However, I want to have large_card_"0" to be flexible meaning that I want it to be based on a variable or change when needed. It could be 1 , 2 , 3 .. etc. What is the best way on doing this. I have also tried creating a r.string but it seems to not work. Thanks in advance.</p>
  
  <p>Regards, </p>
  
  <p>Ryan </p>