I have been searching for ways to put an Arraylist onto a ListView in android but have not been able to do so. This is the program that I use, but it seems to work only for a String array and not for a List element.
List<Students> studentList = new ArrayList<Students>();
ArrayAdapter<Students> arrayAdapter = new ArrayAdapter<Students>(
this,
android.R.layout.simple_list_item_single_choice,
studentList);
listView.setAdapter(arrayAdapter);
I need to find a solution where I can put this arraylist onto the listview without having to convert this into a STring array. Is any such thing possible? Thanks in advance. :-)