I have a listview with some items. I would like to get the text from the selected item.
Here is my list adapter and the onItemClickListener:
ListView
public void onItemClick(**AdapterView**> parent, View view, int position, long id) { }
See the AdapterView.....--->>>the class
AdapterView
Only need to do this :
TextView selectedText=(TextView) parent.findViewById(R.id.textView2);
See...you get the TextView directly
TextView