ImageViewCompat
class ImageViewCompat
Helper for accessing features in ImageView.
Summary
Public functions |
|
|---|---|
java-static ColorStateList? |
getImageTintList(view: ImageView)Return the tint applied to the image drawable, if specified. |
java-static PorterDuff.Mode? |
getImageTintMode(view: ImageView)Return the blending mode used to apply the tint to the image drawable, if specified. |
java-static Unit |
setImageTintList(view: ImageView, tintList: ColorStateList?)Applies a tint to the image drawable. |
java-static Unit |
setImageTintMode(view: ImageView, mode: PorterDuff.Mode?)Specifies the blending mode used to apply the tint specified by |
Public functions
getImageTintList
java-static fun getImageTintList(view: ImageView): ColorStateList?
Return the tint applied to the image drawable, if specified.
getImageTintMode
java-static fun getImageTintMode(view: ImageView): PorterDuff.Mode?
Return the blending mode used to apply the tint to the image drawable, if specified.
setImageTintList
java-static fun setImageTintList(view: ImageView, tintList: ColorStateList?): Unit
Applies a tint to the image drawable.
setImageTintMode
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.