setTextAppearance

open fun setTextAppearance(@NonNull textView: TextView, @StyleRes resId: Int)(source)

Sets the text appearance from the specified style resource.

Use a framework-defined TextAppearance style like @android:style/TextAppearance.Material.Body1.

Parameters

textView

The TextView against which to invoke the method.

resId

The resource identifier of the style to apply.