Android: dynamically Creating a list of objects each with their own buttons and EditTexts
<p>I want to dynamically add rows to a linear layout where each row would have 2 buttons and 2 edittexts. I am not sure the best way to organize this. I had the idea to creating a class for each row with the buttons and edittexts in them but FindViewByID doesn't work that way. The other thought was to include an instance of a layout for each object but I am not sure the best way to efficiently access the buttons in the layout without creating action listeners for, if I had 10 objects, 20 buttons and 20 edittexts. Is it possible to use an array of included layouts and add them as I need them If I do it that way?</p>
