setTint

fun ImageView.setTint(@ColorRes colorRes: Int, mode: PorterDuff.Mode = PorterDuff.Mode.SRC_IN): ImageView

Sets tint color to ImageView using color resource.

색상 리소스를 사용하여 ImageView에 색조 색상을 설정합니다.

Return

The ImageView instance for method chaining.

메서드 체이닝을 위한 ImageView 인스턴스.

Parameters

colorRes

Color resource ID.

색상 리소스 ID.

mode

Tint mode (default: SRC_IN).

색조 모드 (기본값: SRC_IN).