ImageView img = (ImageView) findViewById(R.id.img);
//Atualizando a imagem dinamicamente. A classe R é utilizada para acessar o recurso.
img.setImageResource(R.drawable.img);
There was a mistake, I wanted to know where I was wrong
ImageView img = (ImageView) findViewById(R.id.img);
//Atualizando a imagem dinamicamente. A classe R é utilizada para acessar o recurso.
img.setImageResource(R.drawable.img);
There was a mistake, I wanted to know where I was wrong
Please try as follows
SeuContexto.getDrawable(R.drawable.img)