this is my code :
LinearLayout imageViewParent = (LinearLayout) findViewById(R.id.imageViewParent); ImageView view = new ImageView(this); imageViewPa
You should use setImageResource not setBackgroundResource.