开发者

how to load dynamic array from vector in android? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its cu开发者_如何学Crrent form. For help clarifying this question so that it can be reopened, visit the help center. Closed 10 years ago.

how to load dynamic array from vector in android?


Something like this?

int count = vector.size();
String[] array = new String[count];
vector.copyInto(array); 

to add it to spinner try this

ArrayAdapter<String> arrayAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, array);
spinner.setAdapter(adapter);
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜