I have extended an ArrayAdapter that displays items from two separate classes together in one ListView
. I pass in ArrayList<ClassA> classAList
and ArrayList<ClassB> classBList
to the constructor and an update method, and have overridden the supporting functions to display the two classes differently. Having done this, it seems somewhat inelegant.
Is there a more native way to combine multiple classes into a single ListView?