tags:

views:

39

answers:

1

hi i am new to android.What i did is i am creating a xml file with some data.Now i need to add some additional data to existing xml file dynamically.How can i done this.Pls help me.Thank u in advance.

A: 

Everything that you do with XML in your layout file can be done via coding inside the .java files.

For example, if you want to change the text of the label, you grad the ressource in your code and modify it or if you have a table and want to add data depening on some previous operations, you create the rows programmatically and add it to the "xml" table.

Read through the UI Guides to get many examples and explanations. The Dev Guide is a great ressource and well written.

DrColossos