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
setText
Link copied to clipboard
fun setText(value: CharSequence): TextForm.Builder
setTextColor
Link copied to clipboard
fun setTextColor(@ColorInt() value: Int): TextForm.Builder
setTextColorResource
Link copied to clipboard
fun setTextColorResource(@ColorRes() value: Int): TextForm.Builder
setTextResource
Link copied to clipboard
fun setTextResource(@StringRes() value: Int): TextForm.Builder
setTextSize
Link copied to clipboard
fun setTextSize(@Px() value: Float): TextForm.Builder
setTextTypeface
Link copied to clipboard
fun setTextTypeface(value: Typeface): TextForm.Builder
fun setTextTypeface(value: Int): TextForm.Builder

Properties

text
Link copied to clipboard
var text: CharSequence?
textColor
Link copied to clipboard
var textColor: Int
textSize
Link copied to clipboard
var textSize: Float = 12f
textTypeface
Link copied to clipboard
var textTypeface: Int
textTypefaceObject
Link copied to clipboard
var textTypefaceObject: Typeface? = null