Builder

class Builder(context: Context)

Builder class for creating RibbonView.

Constructors

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

Functions

build
Link copied to clipboard
fun build(): RibbonView
setPaddingBottom
Link copied to clipboard
fun setPaddingBottom(@Dp value: Float): RibbonView.Builder
setPaddingLeft
Link copied to clipboard
fun setPaddingLeft(@Dp value: Float): RibbonView.Builder
setPaddingRight
Link copied to clipboard
fun setPaddingRight(@Dp value: Float): RibbonView.Builder
setPaddingTop
Link copied to clipboard
fun setPaddingTop(@Dp value: Float): RibbonView.Builder
setRibbonBackgroundColor
Link copied to clipboard
fun setRibbonBackgroundColor(@ColorInt color: Int): RibbonView.Builder
setRibbonBackgroundColorResource
Link copied to clipboard
fun setRibbonBackgroundColorResource(@ColorRes color: Int): RibbonView.Builder
setRibbonDrawable
Link copied to clipboard
fun setRibbonDrawable(RibbonDrawable: Drawable?): RibbonView.Builder
setRibbonDrawableResource
Link copied to clipboard
fun setRibbonDrawableResource(@DrawableRes drawable: Int): RibbonView.Builder
setRibbonRadius
Link copied to clipboard
fun setRibbonRadius(@Dp value: Float): RibbonView.Builder
setRibbonRotation
Link copied to clipboard
fun setRibbonRotation(value: Int): RibbonView.Builder
setText
Link copied to clipboard
fun setText(value: CharSequence): RibbonView.Builder
setTextColor
Link copied to clipboard
fun setTextColor(@ColorInt value: Int): RibbonView.Builder
setTextSize
Link copied to clipboard
fun setTextSize(@Sp value: Float): RibbonView.Builder
setTextStyle
Link copied to clipboard
fun setTextStyle(value: Int): RibbonView.Builder

Properties

context
Link copied to clipboard
val context: Context
paddingBottom
Link copied to clipboard
var paddingBottom: Float = 4f
paddingLeft
Link copied to clipboard
var paddingLeft: Float = 8f
paddingRight
Link copied to clipboard
var paddingRight: Float = 8f
paddingTop
Link copied to clipboard
var paddingTop: Float = 4f
ribbonBackgroundColor
Link copied to clipboard
var ribbonBackgroundColor: Int
ribbonDrawable
Link copied to clipboard
var ribbonDrawable: Drawable? = null
ribbonRadius
Link copied to clipboard
var ribbonRadius: Float = 10f
ribbonRotation
Link copied to clipboard
var ribbonRotation: Int = 0
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
textStyle
Link copied to clipboard
var textStyle: Int