[android-beginners] Re: Problem with looping through the buttons in the Layout

2009-01-21 Thread amadamala
Hi James, Great, It perfectly worked for me. It saved number of lines and time to code. Thanks, Anil On Jan 20, 3:59 pm, James Yum j...@google.com wrote: Hi Anil, Reflection may work for you. Here's an untested example (with exception handling omitted): Field field =

[android-beginners] Re: Problem with looping through the buttons in the Layout

2009-01-20 Thread James Yum
Hi Anil, Reflection may work for you. Here's an untested example (with exception handling omitted): Field field = R.id.class.getField(button + i); int id = field.getInt(null); Cheers, James On Sun, Jan 18, 2009 at 4:01 AM, amadamala amadam...@gmail.com wrote: I'm using TableLayout for my