android - Combine Multiple string-array Resources -
i have multiple different categories , in each category use 1 string resource populate listview so:
<string-array name="list"> <item>item1</item> <item>item2</item> <item>item3</item> </string-array> i call them so:
string[] list = getresources().getstringarray(r.array.list); how can combine these 1 string[] use "all" list.
you can combine 2 array list single 1 this:
arraylist<string> first; arraylist<string> second; second.addall(first); since use simple array there multiple way change arrays arraylist, can fetch on net. why not storing them on single array in xml file call global_content exemple. waisting time , memory this!!
Comments
Post a Comment