I have an issue with grabbing an image dynamicly. Simply put, how can I do something like this:
ImageView img = (ImageView)findViewById(R.id.img_place);
img.setImageResource(R.drawable.image_string[1]);
So basicly, the image_string could hold anything,
image1
image2
image3
Must be possible, but can’t figure out how.
You could do it like this,
And then set the image resource like this,