开发者

Android list Activity data filling

I have a list activity .I have created a array

string  []name = new Str开发者_StackOverflow中文版ing[50];

this string is used to populate the list but if i have data only till name[8] and i don't give values to the rest of the array and when i scroll till the end of the list the application force closes


The most simple way would be to have a List<String> fill it with your names and pass it to the Adapter via toArray. However this may be not the cheapest way(in a sense of memory requirements).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜