android 字符串拼接获取图片
ApplicationInfo appInfo = getApplicationInfo();
int resID = getResources().getIdentifier(substring, "mipmap", appInfo.packageName);
// BitmapFactory.decodeResource(getResources(), resID);
imDanci1.setImageResource(resID);
android 字符串拼接获取图片
原文地址:https://www.cnblogs.com/zhangxuetao/p/13437704.html