I have several buttons that i would like to loop through and set their background color. The buttons are all named numerically like so... btn1, btn2, btn3, btn4, etc .
How can I evaluate "btn" + i (where i would be the iteration counter of my loop) as a button so that i can set the BackgroundResource? btn+counter.setBackgroundResource(R.drawable.somepic); --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

