In one of my application i got the arraylist like below:
[android_metadata, test1, test10, test1002, test2, test3, test4, test5]
开发者_Go百科Now i want to separate all the data. and display it in to list view. How it can be done? I want some code to implement it and display it in to listview in android.
Thanks.
Array List has a method called size() and get(Index number)
- ArrayList al = new ArrayList();
- al.sze(); // to get size of array list
- String item1 = al.get(index number); // to get the elemnet of array list
go to this link for more detail ---> array list knowledge
精彩评论