I have +300 png pictures.Their names are like; aaa.png abka.png bxja.png daw.png.
According to my setImage(String pictureName) function i want to set imageview View resource dynamically.
private void setImage(String pictureName){
myImgView.setBackgroundResource(R.drawable + picturename);
}
My main idea is like this but as you can see it is imposible. What did i think to solve this problem is creating switch statemant for all +300 images but it will be really huge effort to implement this.
What am i asking is; is there a any easy way to implement this.