balloon / com.skydoves.balloon / IconForm / Builder

Builder

class Builder

Builder class for IconForm.

Constructors

<init>

Builder class for IconForm.

Builder(context: Context)

Properties

context

val context: Context

drawable

var drawable: Drawable?

iconColor

var iconColor: Int

iconSize

var iconSize: Int

iconSpace

var iconSpace: Int

Functions

build

fun build(): IconForm

setDrawable

sets the Drawable of the icon.

fun setDrawable(value: Drawable?): Builder

setDrawableResource

sets the Drawable of the icon using resource.

fun setDrawableResource(value: Int): Builder

setIconColor

sets the color of the icon.

fun setIconColor(value: Int): Builder

setIconColorResource

sets the color of the icon using resource

fun setIconColorResource(value: Int): Builder

setIconSize

sets the size of the icon.

fun setIconSize(value: Int): Builder

setIconSpace

sets the space between the icon and the main text content.

fun setIconSpace(value: Int): Builder