LayoutElementBuilders.ColorFilter.Builder

public final class LayoutElementBuilders.ColorFilter.Builder


Builder for ColorFilter

Summary

Public methods

@NonNull LayoutElementBuilders.ColorFilter

Builds an instance from accumulated values.

@NonNull LayoutElementBuilders.ColorFilter.Builder

Sets the tint color to use.

@NonNull LayoutElementBuilders.ColorFilter.Builder

Sets the tint color to use.

Public methods

build

@NonNull
public LayoutElementBuilders.ColorFilter build()

Builds an instance from accumulated values.

setTint

@NonNull
public LayoutElementBuilders.ColorFilter.Builder setTint(@NonNull ColorBuilders.ColorProp tint)

Sets the tint color to use. If specified, the image will be tinted, using SRC_IN blending (that is, all color information will be stripped from the target image, and only the alpha channel will be blended with the requested color).

Note that only Android image resources can be tinted; Inline images will not be tinted, and this property will have no effect.

setTint

@NonNull
public LayoutElementBuilders.ColorFilter.Builder setTint(@NonNull ColorBuilders.ColorProp.Builder tintBuilder)

Sets the tint color to use. If specified, the image will be tinted, using SRC_IN blending (that is, all color information will be stripped from the target image, and only the alpha channel will be blended with the requested color).

Note that only Android image resources can be tinted; Inline images will not be tinted, and this property will have no effect.