StyleBuilder

abstract class StyleBuilder<out B : StyleBuilder<B, A>, out A : StyleApplier<*, *>> @JvmOverloads() constructor(applier: A?, name: String)

This class is meant to be implemented by classes generated by the framework exclusively

Constructors

StyleBuilder
Link copied to clipboard
fun <out A : StyleApplier<*, *>> StyleBuilder(applier: A? = null, name: String = "a programmatic style")

Functions

add
Link copied to clipboard
fun add(attributeSet: AttributeSet?): B
Passing a null AttributeSet is a no-op, for convenience
fun add(style: Style): B
fun add(@StyleRes() styleRes: Int): B
apply
Link copied to clipboard
fun apply(): A
build
Link copied to clipboard
fun build(): Style
debugName
Link copied to clipboard
fun debugName(name: String): B
Assigns a name to the style which will be displayed in "same attributes" assertions, ie this is only useful for debugging
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int

Inheritors

ExtendableStyleBuilder
Link copied to clipboard