LayoutElementBuilders.ColorFilter


@RequiresSchemaVersion(major = 1, minor = 0)
public final class LayoutElementBuilders.ColorFilter


Filtering parameters used for images. This can be used to apply a color tint to images.

Summary

Nested types

Builder for ColorFilter

Public methods

@Nullable ColorBuilders.ColorProp

Gets the tint color to use.

@NonNull String

Public methods

getTint

Added in 1.0.0
public @Nullable ColorBuilders.ColorProp getTint()

Gets 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.

While this field is statically accessible from 1.0, it's only bindable since version 1.2 and renderers supporting version 1.2 will use the dynamic value (if set).

toString

public @NonNull String toString()