PrimaryButtonColors

data class PrimaryButtonColors(@ColorInt val background: Int?, @ColorInt val onBackground: Int, @ColorInt val border: Int, @ColorInt val successBackgroundColor: Int = PRIMARY_BUTTON_SUCCESS_BACKGROUND_COLOR.toArgb(), @ColorInt val onSuccessBackgroundColor: Int = onBackground) : Parcelable

Constructors

Link copied to clipboard
constructor(background: Int?, onBackground: Int, border: Int)
constructor(background: Color?, onBackground: Color, border: Color)
constructor(background: Color?, onBackground: Color, border: Color, successBackgroundColor: Color = PRIMARY_BUTTON_SUCCESS_BACKGROUND_COLOR, onSuccessBackgroundColor: Color = onBackground)
constructor(@ColorInt background: Int?, @ColorInt onBackground: Int, @ColorInt border: Int, @ColorInt successBackgroundColor: Int = PRIMARY_BUTTON_SUCCESS_BACKGROUND_COLOR.toArgb(), @ColorInt onSuccessBackgroundColor: Int = onBackground)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The background color of the primary button. Note: If 'null', {@link Colors#primary} is used.

Link copied to clipboard
val border: Int

The border color of the primary button.

Link copied to clipboard

The color of the text and icon in the primary button.

Link copied to clipboard

The success color for the primary button text when in a success state. Defaults to onBackground.

Link copied to clipboard

The background color for the primary button when in a success state. Defaults to base green background color.

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)