setTtTintableIcon

fun setTtTintableIcon(drawableResolver: DrawableResolver?)

Sets an icon to be displayed in front of the banner. And the icon will be tinted by the text color of ttPrimaryText. It's suggested to choose the icon carefully, usually with the white background color, to make the drawable look good. When set to null, no drawable is shown.

NOTE: When using this method, ttDrawableImageType and setTtDrawable shouldn't be used explicitly.


fun setTtTintableIcon(@DrawableRes resId: Int?)

Sets an icon resource to be displayed in front of the banner. And the icon will be tinted by the text color of ttPrimaryText. It's suggested to choose the icon carefully, usually with the white background color, to make the drawable look good. When set to null, no drawable is shown.

NOTE: When using this method, ttDrawableImageType and setTtDrawable shouldn't be used explicitly.