我使用 OnItemClickListener 从列表视图中选择一个项目,如下所示:
listView.setTextFilterEnabled(true);
final TextView disp = (TextView) findViewById(R.id.textView1);
listView.setOnItemClickListener(new OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> arg0, View view, int position,long id) {
String temp = (String) listView.getItemAtPosition(position);
disp.setText(temp);// display on screen
Toast.makeText(getBaseContext(),temparr.get(position),Toast.LENGTH_SHORT).show();
}
});
现在我想在另一个活动中显示结果。我怎样才能实现它?