I'm trying to update a image from a imageview, debugging it I saw that is passing by all the code, but the image doesn't update. Here is my code:
LayoutInflater inflater = (LayoutInflater) getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE); View v = inflater.inflate(R.layout.activity_main, null); ImageView view = (ImageView) v.findViewById(R.id.img); view.setImageResource(R.drawable.head);