Sets the icon of the header of the preference's dialog.

@param resourceId
The resource id of the icon, which should be set, as an {@link Integer} value. The
resource id must correspond to a valid drawable resource
499541
public final void setDialogHeaderIcon(@DrawableRes final int resourceId) {
        this.dialogHeaderIcon = AppCompatResources.getDrawable(getContext(), resourceId);
        this.dialogHeaderIconBitmap = null;
        this.dialogHeaderIconId = resourceId;
    }
1206307
private Drawable getIcon(@ColorRes int colorId) {
        Drawable icon = ContextCompat.getDrawable(this, R.drawable.ic_place_white_24dp);
        if (icon == null) {
            throw new NullPointerException();
        }
        icon = DrawableCompat.wrap(icon);
        DrawableCompat.setTint(icon, ContextCompat.getColor(this, colorId));
        return icon;
    }
1369639
public void setIcon(FontOpenCms icon, String color) {

        if (icon != null) {
            m_iconCell.setInnerHTML(icon.getHtml(32, color));
        } else {
            m_iconCell.setInnerHTML("");
        }
    }
1204525
private void obtainHeaderIcon(@StyleRes final int themeResourceId) {
        TypedArray typedArray = getContext().getTheme().obtainStyledAttributes(themeResourceId,
                new int[]{R.attr.materialDialogHeaderIcon});
        int resourceId = typedArray.getResourceId(0, 0);

        if (resourceId != 0) {
            setHeaderIcon(resourceId);
        }
    }
419500
@NonNull
  public RequestCreator load(@DrawableRes int resourceId) {
    if (resourceId == 0) {
      throw new IllegalArgumentException("Resource ID must not be zero.");
    }
    return new RequestCreator(this, null, resourceId);
  }
1236253
public void addTintTransformationResourceId(int resId) {
        if (mCustomTransformationDrawableIds == null)
            mCustomTransformationDrawableIds = new ArrayList<Integer>();
        mCustomTransformationDrawableIds.add(resId);
    }
902395
public void setIconHaloColor(@ColorInt int color) {
    jsonObject.addProperty(SymbolOptions.PROPERTY_ICON_HALO_COLOR, ColorUtils.colorToRgbaString(color));
  }
948008
public void setArtifactId(final String artifactId) {
        if (artifactId == null && this.artifactId == null) {
            return;
        } else if (artifactId == null) {
            removeChild(this.artifactId);
            this.artifactId = null;
        } else if (this.artifactId == null) {
            this.artifactId = new KeyValueNode<String>(CommonConstants.CS_MAVEN_ARTIFACT_ID_TITLE, artifactId);
            appendChild(this.artifactId, false);
        } else {
            this.artifactId.setValue(artifactId);
        }
    }
347771
public void setResourceId(String resourceId) {

        try {
            if (!m_resourceBuilder.isFolder()) {
                m_resourceBuilder.setResourceId(new CmsUUID(resourceId));
            } else {
                m_resourceBuilder.setResourceId(new CmsUUID());
            }
        } catch (Throwable e) {
            setThrowable(e);
        }
    }
841283
public static void setImageResource(EfficientCacheView cacheView, int viewId,
            @DrawableRes int resId) {
        View view = cacheView.findViewByIdEfficient(viewId);
        if (view instanceof ImageView) {
            ((ImageView) view).setImageResource(resId);
        }
    }
643562
public void setResourceType(String resourceType) {

        if (CmsStringUtil.isEmptyOrWhitespaceOnly(resourceType)) {
            throw new CmsIllegalArgumentException(Messages.get().container(Messages.ERR_VALUE_EMPTY_0));
        }
        m_resourceType = resourceType;
    }
583741
protected void setId(String id) {
		if (!StringUtils.hasText(id)) {
			id = null;
		}
		this.id = id;
	}
1357399
public void configure(int resId) {
        Resources resources = context.getResources();

        try {
            InputStream rawResource = resources.openRawResource(resId);
            Properties properties = loadProperties(rawResource);
            startConfiguration(properties);
        } catch (NotFoundException e) {
            Log.e(TAG, "Did not find  resource." + e);
        } catch (IOException e) {
            Log.e(TAG, "Failed to read the resource." + e);
        }
    }
916790
public final void setIcon(@DrawableRes final int resourceId) {
        this.icon = ContextCompat.getDrawable(getContext(), resourceId);
        this.iconBitmap = null;
        this.iconId = resourceId;
        this.iconAttributeId = -1;
        adaptIcon();
    }
213994
public static String groupFromResourceId(String id) {
        return (id != null) ? ResourceId.fromString(id).resourceGroupName() : null;
    }
492472
private void obtainDialogIcon(@NonNull final TypedArray typedArray) {
        int resourceId =
                typedArray.getResourceId(R.styleable.DialogPreference_android_dialogIcon, -1);

        if (resourceId != -1) {
            setDialogIcon(resourceId);
        }
    }
1299043
func (s *CreateResourceOutput) SetResourceId(v string) *CreateResourceOutput {
	s.ResourceId = &v
	return s
}