简体   繁体   中英

How to put all image in “drawable-xxhdpi” in an array? specifically in “Mat” array?

I still can't figure out how to do this. Retreive all images in the drawable folder and load them in an array:( is this possible? HELP!

int[] myImageList = new int[]{R.drawable.thingOne, R.drawable.thingTwonR,drawable.thingTwo};

ArrayList<Integer> myImageList = new ArrayList<Integer>();
myImageList.add(R.drawable.thingOne);

Check this

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM