我想点击 listview 然后显示文本但它有错误 .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();
}
});
}