Is there a way to add ListView objects to an array so that I can address them quickly with a for loop?
public static ListView tagListView;
public static ListView commonListView;
public static ListView recentListView;
public static ListView[] listviews = { tagListView, commonListView, recentListView };
This code results in the listviews array items being null. I have tried a few variations of this with the same results. Is this possible to do? It seems like I just need to make an array of pointers to these three objects.
I am trying to do this because the ListViews are for the most part very different and having the names makes it much more readable than just having three items in an array but every once in a while I need to do the same thing to all three.
null.