Can I set an ArrayAdapter < Object > or ArrayAdapter < String > with multiple objects? I have a ListView Item with an Icon and a TextView. I can use this to set the TextView names:
mDrawerList.setAdapter(new ArrayAdapter<String>(
this,
R.layout.drawer_list_item,
mDrawerItems));
But I also want to assign an Icon to each ImageView for each ListView Item. I have got an int[]
with all Drawable Icon References, how can I pass this to the Adapter?
The ImageView ID is: android:id="@android:id/icon1"
The TextView ID is: android:id="@android:id/text1"