I have a doubt in listview android. I am getting 3 dynamic values from service. I am using my own Arraylist Adpater. I have 3 textviews. I am able to get the data from service. I need to know how can i place the 3 values in individual textview of the listview.
sample code:
buddyNameList[i] = r.getName() + status;
//buddyNameLists[i] = status;
//RowData rd;
for(i=0;i<buddyNameList[i].length();i++){
//buddyJidList[i] = r.getUser();
// Intent myIntent = new Intent(this,DataHelper.class);
// myIntent.putExtra("UJID", mydata);
// startActivity(myIntent);
// dh.insertBuddy(r.getUser(),r.getName());
i++;
ListAdapter adapter = new ArrayAdapter<String>(this,
R.layout.custom_row_view,R.id.name ,buddyNameList); // here i can append one value in 1 textview. i need to display all 3 //values from service in 3 individual textview in listview
lv.setAdapter(adapter);
I need to know how to place values of all 3 data in corresponding cell in listview Kindly guide me how can i achive the result.
Thanks in advance. }