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

Popular posts from this blog

php - Admin SDK -- get information about the group -

dns - How To Use Custom Nameserver On Free Cloudflare? -

Python Error - TypeError: input expected at most 1 arguments, got 3 -