android - 我怎样才能插入到 Stringp[

标签 android android-listview

我目前有预定义的数据

String[] values = new String[] { "Android", "iPhone", "WindowsMobile", "Blackberry", "WebOS", "Ubuntu",
                "Windows7", "Max OS X", "Linux", "OS/2", "Ubuntu", "Windows7", "Max OS X", "Linux", "OS/2", "Ubuntu",
                "Windows7", "Max OS X", "Linux", "OS/2", "Android", "iPhone", "WindowsMobile" };

我想从对象数组中插入值

List<Scores> myScore = db.getAllScore();


        for (Scores cn : scor)
        {
            // how can I insert it into values

        }

最佳答案

试试这个。

List<Score> myScore = db.getAllScore();

        for (int i = 0,j=value.length; i < myScore.size(); i++,j++) {
            value[j]=myScore.get(i);
        }

关于android - 我怎样才能插入到 Stringp[,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22403851/

相关文章:

android - 如何在两个图像之间淡出和淡出?

android - 后退按钮使用 appcelerator titanium 退出 android 中的应用程序

android - 编辑文本高度在点击时减小

android - ListView 和键盘导航

Android动态加载ListView

Android:使用 requestSingleUpdate 或替换它

android - 如何在 webview 中打开 twitter hash 标签链接?

android - 如何设置布局 :width of an object to (wrap_content + 10)?

android - Listview 快速滚动时跳到底部

android - 使 ListView 移动到最后一项位置