ImageViewCompat

open class ImageViewCompat
kotlin.Any
   ↳ androidx.core.widget.ImageViewCompat

Helper for accessing features in ImageView.

Summary

Public methods
open static ColorStateList?

Return the tint applied to the image drawable, if specified.

open static Unit

Applies a tint to the image drawable.

open static Mode?

Return the blending mode used to apply the tint to the image drawable, if specified.

open static Unit

Specifies the blending mode used to apply the tint specified by #setImageTintList(android.widget.ImageView, android.content.res.ColorStateList) to the image drawable.

Public methods

getImageTintList

open static fun getImageTintList(view: ImageView): ColorStateList?

Return the tint applied to the image drawable, if specified.

setImageTintList

open static fun setImageTintList(view: ImageView, tintList: ColorStateList?): Unit

Applies a tint to the image drawable.

getImageTintMode

open static fun getImageTintMode(view: ImageView): Mode?

Return the blending mode used to apply the tint to the image drawable, if specified.

setImageTintMode

open static fun setImageTintMode(view: ImageView, mode: Mode?): Unit

Specifies the blending mode used to apply the tint specified by #setImageTintList(android.widget.ImageView, android.content.res.ColorStateList) to the image drawable. The default mode is PorterDuff.Mode#SRC_IN.