Adding a imageview to child elements in a expandable list query
Posted
by Thomas Millin
on Stack Overflow
See other posts from Stack Overflow
or by Thomas Millin
Published on 2010-04-22T11:59:58Z
Indexed on
2010/04/22
12:03 UTC
Read the original article
Hit count: 280
I am looking to find out how to assign an image to a imageview in each child of an expandable list.
If anyone has any information or links to find out how to do this I would be most appreciative.
expListAdapter =
new SimpleExpandableListAdapter(
main.this,
createGroupList(),
R.layout.parentnode,
new String[] { "day", "number" },
new int[] { R.id.TextView01, R.id.TextView02 },
createChildList(),
R.layout.child_row,
new String[] { "image", "childName", "date"},
new int[] { R.id.ImageView01, R.id.childname, R.id.date }
);
setListAdapter( expListAdapter );
is what my adapter looks like at the moment, I have very little experience in customising adapters so I do not know where to start.
Any help would be great :D
© Stack Overflow or respective owner