balloon / com.skydoves.balloon / TextForm / Builder

Builder

class Builder

Builder class for TextForm.

Constructors

<init>

Builder class for TextForm.

Builder(context: Context)

Properties

context

val context: Context

text

var text: String

textColor

var textColor: Int

textSize

var textSize: Float

textTypeface

var textTypeface: Int

textTypefaceObject

var textTypefaceObject: Typeface?

Functions

build

fun build(): TextForm

setText

sets the content text of the form.

fun setText(value: String): Builder

setTextColor

sets the color of the text.

fun setTextColor(value: Int): Builder

setTextColorResource

sets the color of the text using resource.

fun setTextColorResource(value: Int): Builder

setTextResource

sets the content text of the form using string resource.

fun setTextResource(value: Int): Builder

setTextSize

sets the size of the text.

fun setTextSize(value: Float): Builder

setTextTypeface

sets the Typeface of the text.

fun setTextTypeface(value: Int): Builder
fun setTextTypeface(value: Typeface?): Builder