inflate
open fun inflate(@NonNull resources: Resources, @ColorRes resId: Int, @Nullable theme: Resources.Theme): ComplexColorCompat(source)
Creates a ComplexColorCompat from an XML document using given a set of Resources and a Resources.Theme.
Return
A new color.
Parameters
resources
Resources against which the ComplexColorCompat should be inflated.
resId
the resource identifier of the ColorStateList of GradientColor to retrieve.
theme
Optional theme to apply to the color, may be null
.