1lv.setOnItemClickListener(new OnItemClickListener() {
2 public void onItemClick(AdapterView<?> parent, View view,
3 int position, long id) {
4 // When clicked, show a toast with the TextView text
5 Toast.makeText(getApplicationContext(), ((TextView) view).getText(),
6 Toast.LENGTH_SHORT).show();
7 }
8 });