android - Iterate over a java map and change values -
i have map of <checkbox, imagebutton>
.
i want able iterate on map , change image of each imagebutton
. there way can this? getvalue()
doesn't seem let me use methods associated each imagebutton.
taken this answer
you have cast result of getvalue imagebutton use functions.
iterator = mp.entryset().iterator(); while (it.hasnext()) { map.entry pair = (map.entry)it.next(); ((imagebutton)pair.getvalue()).setimagebitmap(bitmap); }
Comments
Post a Comment