【发布时间】:2015-05-24 07:32:47
【问题描述】:
我有这两个字符串数组,
String[] from = { "name" };
String[] favourite = { "favourite" };
我想传递给这个构造函数:
contactAdapter = new SimpleCursorAdapter(this, R.layout.contact_list_item, null, HERE, to);
这里说的地方。我该怎么做呢?
【问题讨论】:
-
您需要创建一个包含两者内容的新数组。