I have a lot of images in my project named image_0, image_1, image_2 .... and currently, for storing them in an array, I use
int[] images = {R.drawable.image_0, R.drawable.image_1 ....};
But I have like 400 images and this is very ugly to see in the code so I'd like to use a for cycle like:
ArrayList<Integer> images = new ArrayList<Integer>;
for(int i = 0; i < 400; i++){
images.add(R.drawable.image_+"i");
}
But they are Int not String.. How can I do that ?