public View getView(int position, View convertView, ViewGroup parent) { View row = super.getView(position, convertView, parent); TextView exerciseName = (TextView) row.findViewById(R.id.name_in_row); // set the text view text to the exercise name exerciseName.setText(exercises.get(position).getName()); TextView exerciseTime = (TextView) row.findViewById(R.id.time_in_row); // set the text view text to the exercise time, while formatting it exerciseTime.setText(Exercise.timeToString(exercises.get(position).getTime())); return row; }