ImageView.setBackgroundResource(image); code example
Example: imageview.setbackground
imageViewCategory.setBackground(getResources().getDrawable(R.drawable.layout_selected));
imageViewCategory.setBackground(getResources().getDrawable(R.drawable.layout_selected));