imageview.setbackground

Java
 
         
            imageViewCategory.setBackground(getResources().getDrawable(R.drawable.layout_selected));
     
    
Source

Also in Java: