I have created the main.xml and the list.xml
my java class extends menuActivity
I have 2 vectors–
Vector<String> name=new Vector<String>();
Vector<String> nickname=new Vector<String>();
i have created my custom holder class too.
my question is how do i pass this two list into my adapter class.
which adapter should i use?
i tried putting this two vectors inside another list and sending that list to my custom adpater class.But it didnt work out.
I am stuck here.
What is the difference between baseadpater and an array adapter?
All BaseAdpater does is solidify the callbacks necessary for a for an AbsListView. An ArrayAdater is a more comprehensive adapter that auto-inflates a list of items into a TextViews.
For your situation, I recommend extending BaseAdapter: