applyColorAtom

fun TextView.applyColorAtom(colorAtom: ColorAtom?, foreground: Boolean = true)

Applies a ColorAtom to a TextView, setting the text color

Parameters

colorAtom

the ColorAtom that will be applied to the TextView

foreground

a Boolean indicating whether the atom should be applied to the foreground or background TextView


fun View.applyColorAtom(colorAtom: ColorAtom?)

Applies a ColorAtom to a TextView, setting the background color

Parameters

colorAtom

the ColorAtom that will be applied to the View