Builder

class Builder(context: Context)

Builder class for IconForm.

Constructors

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

Functions

build
Link copied to clipboard
fun build(): IconForm
setDrawable
Link copied to clipboard
fun setDrawable(value: Drawable?): IconForm.Builder
sets the Drawable of the icon.
setDrawableGravity
Link copied to clipboard
fun setDrawableGravity(value: IconGravity): IconForm.Builder
sets gravity of the Drawable of the icon using resource.
setDrawableResource
Link copied to clipboard
fun setDrawableResource(@DrawableRes() value: Int): IconForm.Builder
sets the Drawable of the icon using resource.
setIconColor
Link copied to clipboard
fun setIconColor(value: Int): IconForm.Builder
sets the color of the icon.
setIconColorResource
Link copied to clipboard
fun setIconColorResource(@ColorRes() value: Int): IconForm.Builder
sets the color of the icon using resource
setIconHeight
Link copied to clipboard
fun setIconHeight(@Px() value: Int): IconForm.Builder
sets the height size of the icon.
setIconSize
Link copied to clipboard
fun setIconSize(@Px() value: Int): IconForm.Builder
sets the size of the icon.
setIconSpace
Link copied to clipboard
fun setIconSpace(@Px() value: Int): IconForm.Builder
sets the space between the icon and the main text content.
setIconWidth
Link copied to clipboard
fun setIconWidth(@Px() value: Int): IconForm.Builder
sets the width size of the icon.

Properties

context
Link copied to clipboard
val context: Context
drawable
Link copied to clipboard
var drawable: Drawable? = null
drawableRes
Link copied to clipboard
var drawableRes: Int? = null
iconColor
Link copied to clipboard
var iconColor: Int
iconGravity
Link copied to clipboard
var iconGravity: IconGravity
iconHeight
Link copied to clipboard
@Px()
var iconHeight: Int
iconSpace
Link copied to clipboard
@Px()
var iconSpace: Int
iconWidth
Link copied to clipboard
@Px()
var iconWidth: Int