I checked around and and I can never quite find something that helps me with what I am trying to accomplish. In my Android app I want to be able to make a request to the server for some data, when that data is returned I want to populate a scrollview because there is too much to fit in one display. The reason I am doing this is because the data will be updated too often for me to do continuous updates of the app (imaginee twitter). I've already built out the XML linearlayout which will populate the scroll view I just need to find the best way of building out the View.
I've brainstormed a few methods which this could be possible and I'm reaching out for which would be most practical if possible.
Passing the data as a XML feed - I feel this would allow me to run through all the data which is fed from the server and using the XML tags pull the content and place into the appropriate location in the layout. Then build the next layout and go from there.
Passing the full layout XML from the server - This could build the layout but I feel would prevent me from making the buttons on the layout which will trigger onclick from being setup as I am passing all the data. I know there are anonymous listeners which could do the job but I'm not quite sure how I could get it to trigger in this case.
I had a third but it has escaped me at this time. Any help is appreciated.