📅  最后修改于: 2022-03-11 14:52:17.493000             🧑  作者: Mango
img=(ImageView)findViewById(R.id.imageview1);
Drawable myDrawable = getResources().getDrawable(R.drawable.imageView1);
img.setImageDrawable(myDrawable);