I'm making an Android application and it's got a lot of images (about 200). And I want to show the specific image according to what the user selects.
The selections are in the form of Strings such as "USD", "AUD", "LKR", etc. And the images are in the form "usd.png", "aud.png", "lkr.png" and so on. I have put the images in the /res/drawable-mdpi folder and I usually access them like R.drawable.usd and so on.
But in this case its [obviously] hard to do that (for 200+ icons). So is there anyway I can obtain the specific image according to user selection? For example, when user selects "USD", I want to obtain the image named "usd.png". Any help?
Thanks in advance.