android 根据文件名获取图片资源id

1,spa Context context = getBaseContext(); int id = context.getResources().getIdentifier(ImageName, "mipmap", context.getPackageName()); ip 2,get try { Field field = R.mipmap.class.getDeclaredField(Ima
相关文章
相关标签/搜索