I try to assign an image of the drawable folder to an ImageView with the setImageResource method, but I do not know what the method takes to access R.drawable.image_name
ImageView image;
image.setImageResource("?");
I try to assign an image of the drawable folder to an ImageView with the setImageResource method, but I do not know what the method takes to access R.drawable.image_name
ImageView image;
image.setImageResource("?");
Try with setImageDrawable
image.setImageDrawable(getResources().getDrawable(R.drawable.image_name));