我有一个Android的ListView和它有一个two_line_list_item布局....文本1和文本的毗连结果到一个单一的列表视图元素
我有一个SQL查询返回了我....光标在下面的例子我已经设置NAMEA从SQL到文本1和NameB到文本2
// Create an array to specify the fields we want to display in the list (only TITLE)
String[] from = new String[]{"NameA", "NameB"};
// and an array of the fields we want to bind those fields to (in this case just text1)
int[] to = new int[]{android.R.id.text1, android.R.id.text2};
// Now create a simple cursor adapter and set it to display
SimpleCursorAdapter matches = new SimpleCursorAdapter(this, android.R.layout.two_line_list_item, MatchesCursor, from, to);
setListAdapter(matches);
我怎么能去有关串联的两个名字(不更改我的SQL查询),所以文本1将“NAMEA v NameB” ...
在此先感谢