ImageViewCompat

Added in 1.1.0

class ImageViewCompat


Helper for accessing features in ImageView.

Summary

Public functions

java-static ColorStateList?

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

java-static PorterDuff.Mode?

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

java-static Unit

Applies a tint to the image drawable.

java-static Unit

Specifies the blending mode used to apply the tint specified by setImageTintList to the image drawable.

Public functions

getImageTintList

Added in 1.1.0
java-static fun getImageTintList(view: ImageView): ColorStateList?

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

getImageTintMode

Added in 1.1.0
java-static fun getImageTintMode(view: ImageView): PorterDuff.Mode?

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

setImageTintList

Added in 1.1.0
java-static fun setImageTintList(view: ImageView, tintList: ColorStateList?): Unit

Applies a tint to the image drawable.

setImageTintMode

Added in 1.1.0
java-static fun setImageTintMode(view: ImageView, mode: PorterDuff.Mode?): Unit

Specifies the blending mode used to apply the tint specified by setImageTintList to the image drawable. The default mode is SRC_IN.