I am going to populate a scroll view with a dynamic number of child LinearLayouts at runtime. I am trying to formulate the cleanest way to do this.
The child layout will contain two text items. The text items will be set to display the savefile name and savefile date at runtime.
So my question is, can I create a single xml layout, and then use a LayoutInflater to create multiple instances of this layout at runtime?
If I could, how would I gain access to multiple instances of text1 and text2. It seems like this would break the whole findViewById model.
It just seems that creating lots of UI elements at runtime in android is messy and verbose (setting all the layout options for the view when you create them)....
in infomercial style
There has got to be a better way!! :P