I understand that simple_list_item_1 is a pre written xml layout file that we use when we are creating a listview.
We pass it in as one of the parameters to the constructor of ArrayAdapter<>.
But why do we need a middleman?
the android manual on this constructor says that the parameter needs to be "The resource ID for a layout file containing a layout to use when instantiating views."
But all the
I want to understand why in all the examples I've seen, they use simple_list_item_1, instead of just passing in their own layout file which contains the ListView they want to populate.
Thanks