我想点击列表视图,然后显示文字,但它有错误.getText
ListView listView = getListView();
listView.setTextFilterEnabled(true);
listView.setOnItemClickListener(new OnItemClickListener() {
public void onItemClick(AdapterView<?> parent, View view,
int position, long id) {
Toast.makeText(getApplicationContext(),
((TextView) view).findViewById(R.id.line_a).getText(),
Toast.LENGTH_SHORT).show();
}
});
}