set image in imageview from drawable in android code example
Example 1: android display drawable in imageview
img=(ImageView)findViewById(R.id.imageview1);
Drawable myDrawable = getResources().getDrawable(R.drawable.imageView1);
img.setImageDrawable(myDrawable);
Example 2: how to create a new imageview in android java
ImageView move = new ImageView(this);