📜  从字符串 android 获取可绘制 - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:26.933000             🧑  作者: Mango

代码示例2
Context context = imageView.getContext();
int id = context.getResources().getIdentifier("picture0001", "drawable", context.getPackageName());
imageView.setImageResource(id);