Here is my constructor for my custom BaseAdapter
public MyAdapterAds(Activity activity, BaseAdapter delegate) {
this.activity = activity;
this.delegate = delegate;
}
I have an arraylist of objects named mObjects. How do I get them into this method from my activity?
How do I initialize my baseAdapter
this is what I tried
myAdapter = new myAdapterAds(MainActivity.this, new ArrayAdapter<myObject>(context, R.layout.my_object_cell, myObjectArray));
No reason for this to work, but I had just began rewriting this baseadapter, how would I rewrite that last part to get my array of objects in it?
I keep getting "IllegalStateException: ArrayAdapter requires the resource to be a textview" but I am using an object with several parameters, why would I display a textview?