So currently I'm using an ArrayAdapter to populate my listview from my database, like so:
ArrayAdapter<String> arrayAdapter = new ArrayAdapter<String>(
this, R.layout.subject_list_item, mArrayList);
lv.setAdapter(arrayAdapter);
(mArrayList is a list of the text that will populate the listview, lv.)
Currently, if I want to add a final item to the bottom of the list, I can just append it to the mArrayList
, but this will set it's layout to subject_list_item
the same as all the other items. Is there an easy way of setting the layout
of only the final item to a different layout, say subject_list_item2
? I want it in the same list so that it still scrolls with the other items, but I want it to look different.