Builder

class Builder(context: Context)

Builder class for TextForm.

Constructors

Builder
Link copied to clipboard
fun Builder(context: Context)

Functions

build
Link copied to clipboard
fun build(): TextForm
setMovementMethod
Link copied to clipboard
fun setMovementMethod(value: MovementMethod): TextForm.Builder
sets the movement method for TextView.
setText
Link copied to clipboard
fun setText(value: CharSequence): TextForm.Builder
sets the content text of the form.
setTextColor
Link copied to clipboard
fun setTextColor(value: Int): TextForm.Builder
sets the color of the text.
setTextColorResource
Link copied to clipboard
fun setTextColorResource(@ColorRes() value: Int): TextForm.Builder
sets the color of the text using resource.
setTextGravity
Link copied to clipboard
fun setTextGravity(value: Int): TextForm.Builder
sets gravity of the text.
setTextIsHtml
Link copied to clipboard
fun setTextIsHtml(value: Boolean): TextForm.Builder
sets whether the text will be parsed as HTML (using Html.fromHtml(..
setTextResource
Link copied to clipboard
fun setTextResource(@StringRes() value: Int): TextForm.Builder
sets the content text of the form using string resource.
setTextSize
Link copied to clipboard
fun setTextSize(@Sp() value: Float): TextForm.Builder
sets the size of the text.
setTextSizeResource
Link copied to clipboard
fun setTextSizeResource(@DimenRes() value: Int): TextForm.Builder
sets the size of the main text content using dimension resource.
setTextTypeface
Link copied to clipboard
fun setTextTypeface(value: Typeface?): TextForm.Builder
sets the Typeface of the text.
fun setTextTypeface(value: Int): TextForm.Builder
sets the Typeface of the text.

Properties

context
Link copied to clipboard
val context: Context
movementMethod
Link copied to clipboard
var movementMethod: MovementMethod? = null
text
Link copied to clipboard
var text: CharSequence
textColor
Link copied to clipboard
var textColor: Int
textGravity
Link copied to clipboard
var textGravity: Int
textIsHtml
Link copied to clipboard
var textIsHtml: Boolean = false
textSize
Link copied to clipboard
@Sp()
var textSize: Float = 12f
textTypeface
Link copied to clipboard
var textTypeface: Int
textTypefaceObject
Link copied to clipboard
var textTypefaceObject: Typeface? = null