What parameters this method should take to assign an image of the Drawable folder to the image, or if another method is used for this.
ImageView image;
image.setImageResource("?");
What parameters this method should take to assign an image of the Drawable folder to the image, or if another method is used for this.
ImageView image;
image.setImageResource("?");
You must enter the id of your image.
For example, if your drawable is called "image_test.png" The code would look like this:
image.setImageResource(R.drawable.imagen_test);
I hope I have helped you.