📌  相关文章
📜  android在imageview中显示drawable - Java代码示例

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

代码示例1
img=(ImageView)findViewById(R.id.imageview1);
Drawable myDrawable = getResources().getDrawable(R.drawable.imageView1);
img.setImageDrawable(myDrawable);