I need to change the image in an imageview then get the width. Problem is, it gives me the width of the last image.
headpic.setImageResource(head[x]);
int width = headpic.getWidth();
if i then run this code again with x being the same value it gets the correct width.