I have multiple classes, which all extend some BasicDataModel:
public class NewsItem extends BasicDataModel
public class PhotosItem extends BasicDataModel
etc. So I need to make ArrayAdapters for all of them, and I wonder if it is possible to make some generic ArrayAdapter to fit all my objects. So far I tried to make
public class MyAdapter extends ArrayAdapter<BasicDataModel>
but as long as I pass ArrayList, for example, this doesn’t work.
Thanks in advance
Try
and use