I find that when coding I make use of allot of ListVIews and most of my time is spent copy pasting and modifying the previous activities Adapter to work with the new activities data. I want to implement a generic list adapter class that I can use for all of my ListViews regardless of their views.
I have done some searching for ways to do this and I came across this tutorial: Tutorial
He implements a Genrick Adapter him self. I have tried to implement his approach but I have gotten compiler issues in eclipse. regarding the generic types *however thats not the issue at hand).
I also came across this library: android-collections-list-and-spinner-adapter It claims to also do what I am looking for. Another link about it: Article on the lib
So My questions is more so what have other people done / used in order to achieve code Re-usability with ListViews.
Has Any one used the android-collections-list-and-spinner-adapter
library before?
I am looking to do something along the lines of:
GenerickAdapter<MyObject> adapter = new GenerickAdapter<MyObject> (list<MyObject, context);`
listView.SetAdapter(adapter);