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

2009-01-21 Thread amadamala
(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 application. I do have 16 buttons (4 rows and 4 columns) inside the layout. I'm able to assign the text to each button

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

2009-01-19 Thread amadamala
I'm using TableLayout for my application. I do have 16 buttons (4 rows and 4 columns) inside the layout. I'm able to assign the text to each button by assigning value to R.id.Button01, 02, 03 Button16. Take this as an example code.