code: public void setIcon(@DrawableRes int resId){
          mIcon.setImageResource(resId);
          mIcon.setVisibility(View.VISIBLE);
      }
docs: Set the Icon by resource identifier
  
  @param resId     the icon resource identifier