开发者

How do I update a spinner list from another class/view?

I have a spinner on my main view and I want to add and remove items from it's array from ano开发者_如何转开发ther view. Is this possible?

Thanks,

Boyd


If you're adding/removing items in another Activity (making that assumption here), then however you're handling data should update the spinner in the spinner's activity's onCreate or onResume (which would probably happen anyways).

And like BrennaSoft said in the comment, if it's happening in the same activity, then there should be no problem modifying the array the spinner is using for data

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜