Issue
I'm trying to create app that shows image from drawable, e.g. gallery application. I`m using this guide link guide, but I want show images from drawable resources, not from SD card. Can you give me some advice what I need change in this code, I guess I should change in Utils.class. Sorry for my English and Im newbie android dev
Solution
Define the drawables in an array
int[] myImageList = new int[]{R.drawable.thingOne, R.drawable.thingTwo};
later... access them like this based on position myImageView.setImageResource(myimagelist[i]);
Answered By - surya
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.