android display drawable in imageview

115

android display drawable in imageview -

img=(ImageView)findViewById(R.id.imageview1);
Drawable myDrawable = getResources().getDrawable(R.drawable.imageView1);
img.setImageDrawable(myDrawable);

Comments

Submit
0 Comments