I am having the following xml contents which i want to use inside a table as a row data as many times by changing their data from the java code at run time.

I can get xml resource using "R.layout.tableRow" but when i try to modify the textviews values for one row it is fine but next time i retrive resource again and want to modify the tetviews values it says already used.

I am having a loop in the parent layout oncreate method, every time i get the xml resource try to modify its contents and try to add in tablerow element but that is not working....

when we create customize Listview we use LayoutInflater inflater=getLayoutInflater(); every time we need to crate new listitem but how can i achieve this in table layout.