Given a listview with many data fields per row, how can we separate only one field (say an id) from the row withonClickListener()
public void onItemClick(AdapterView<?> arg0, View arg1, int position, long arg3) {
Object dataRow = listView.getItemAtPosition(position);
Log.e("hi, this is the full row of data, i just want 1 of the fields", dataRow);
}
This can be achieved by custom listview by extending BaseAdapter to a class.. In the class you can
Inside oncreate :
outside onCreate and newListview is the innerclass for the activity