-
int imageId = context.getResources().getIdentifier("图片的名字","drawable", "包名");
-
//iv是ImageView
-
iv.setImageResource(imageId );
转载于:https://www.cnblogs.com/Free-Thinker/p/9628654.html
转载于:https://www.cnblogs.com/Free-Thinker/p/9628654.html