mergeFromTextAppearance

fun mergeFromTextAppearance(context: Context, @StyleRes textAppearance: Int, @ColorRes textBackgroundColor: Int = 0)

Merge attributes into this instance's values by given com.google.android.material.resources.TextAppearance and background color.

Since

3.0.0

Parameters

context

the context of view.

textAppearance

A TextAppearance to apply.

textBackgroundColor

A background color to apply.