int resID = getResources().getIdentifier("imageName", "drawable", "com.test.image");
Drawable image = getResources().getDrawable(resID);
这样就行了,可以在for循环中,批量获得Drawable
int resID = getResources().getIdentifier("imageName", "drawable", "com.test.image");
Drawable image = getResources().getDrawable(resID);
这样就行了,可以在for循环中,批量获得Drawable