setText

open fun setText(resId: Int)

Sets the text to be displayed from a string resource.

Parameters

resId

The resource ID of the string.


open fun setText(resId: Int, type: TextView.BufferType)

Sets the text to be displayed from a string resource.

Parameters

resId

The resource ID of the string.

type

The buffer type.


open fun setText(text: CharSequence?)

Sets the text to be displayed.

Parameters

text

The text to be displayed.


open fun setText(text: CharSequence?, type: TextView.BufferType)

Sets the text to be displayed.

Parameters

text

The text to be displayed.

type

The buffer type.