This code segment lets you to get text from your Custom ListView which one you click.
listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
TextView tv = (TextView) view.findViewById(R.id.country_name);
String country = tv.getText().toString();
}
}
I think this is really a simple code segment i think, if you do not understand anything, feel free to ask me :)Happy Coding :)