Click here to Skip to main content
16,019,364 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have made afunction
C#
fetchData()
{
  ArrayList<moviedata> objMoviedata = null;

...
...
...
}

to fetch xml data and storing in ArrayList<moviedata>
which is working fine,now i want to bind this data in listview,
so can anybody please help,
Thanks in advance,for any suggestion.
Posted
Updated 25-Jul-12 1:15am
v2

1 solution

Here i give two things.
That are :
1. Get String array data from xml file
2. Bind the data into listView

Try this Code..

Java
ArrayAdapter<charsequence> adp=ArrayAdapter.createFromResource(this,
                R.array.str, android.R.layout.simple_list_item_1);
adp.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
list.setAdapter(adp);</charsequence>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900