ImageViewCompat

Helper for accessing features in ImageView.

Functions

Link copied to clipboard
@Nullable
open fun getImageTintList(@NonNull view: @NonNull ImageView): @Nullable ColorStateList
Return the tint applied to the image drawable, if specified.
Link copied to clipboard
open fun getImageTintMode(@NonNull view: @NonNull ImageView): @Nullable PorterDuff.Mode
Return the blending mode used to apply the tint to the image drawable, if specified.
Link copied to clipboard
open fun setImageTintList(@NonNull view: @NonNull ImageView, @Nullable tintList: @Nullable ColorStateList)
Applies a tint to the image drawable.
Link copied to clipboard
open fun setImageTintMode(@NonNull view: @NonNull ImageView, mode: @Nullable PorterDuff.Mode)
Specifies the blending mode used to apply the tint specified by setImageTintList to the image drawable.