TintableImageSourceView

Interface which allows an android.widget.ImageView to receive image tinting calls from ImageViewCompat when running on API v20 devices or lower.

When used on a View annotated with androidx.resourceinspection.annotation.AppCompatShadowedAttributes, this interface implies that AppCompat shadows the platform's image tint attributes. See androidx.resourceinspection.processor for more details and a full mapping of attributes.

Functions

Link copied to clipboard
@Nullable
abstract fun getSupportImageTintList(): @Nullable ColorStateList
Return the tint applied to the image drawable, if specified.
Link copied to clipboard
abstract fun getSupportImageTintMode(): @Nullable PorterDuff.Mode
Return the blending mode used to apply the tint to the image drawable, if specified.
Link copied to clipboard
abstract fun setSupportImageTintList(@Nullable tint: @Nullable ColorStateList)
Applies a tint to the image drawable.
Link copied to clipboard
abstract fun setSupportImageTintMode(tintMode: @Nullable PorterDuff.Mode)
Specifies the blending mode used to apply the tint specified by setSupportImageTintList} to the image drawable.