SyntaxFix
Write A Post
Hire A Developer
Questions
As simple as this answer:
Drawable myDrawable = getResources().getDrawable(R.drawable.pic); imageview.setImageDrawable(myDrawable);