in my app i am using a list view. The data which i want to list out are from a database of my app and an xml server database.
For example i am getting some two set of data from server and store it in a array as follows
firstname = {arun, Arun, Rajesh}
lastname = {kumar, sundar, kannan}
Now again i am getting some data from my app database and store it in array as follows
first = {arul}
last = {raj}
Now i have combined the array list together as follows
firstname.addAll(first);
lastname.addAll(last);
Now i have the output as
{arun, Arun, Rajesh, arul}
{kumar, sundar, kannan, raj}
Now i want to list out these items as in the following image

how to do this, please help me……
If you finally get all your firstname and lastname in two separate array then it is very simple to display on ListView as you want
first create a layout which has a listview element lets us name main.xml
then create a another layout having two TextView in Horizontal layout orientation let us name mainitem.xml
so now you create a new activity then call setContentView(R.layout.main)
then retrive list view
and now create a adapter by following code
this code is in onCreate(Bundle b) method
create mainitem.xml file having two TextView which id are 1)R.id.firstname, 2) R.id.lastname in layout horizontal orientation