PayPalButtonColor

Defines the colors available for PayPal buttons.

See also

is the default color if one is not provided and is the recommended choice as research has shown it results in the best conversion.

is the preferred alternative color if gold does not work for your experience. Research has shown that people know it is our brand color, which provides a halo of trust and security to your experience.

is one of our secondary alternatives. This color is less capable of drawing people's attention.

is one of our secondary alternatives. This color is less capable of drawing people's attention.

is one of our secondary alternatives. This color is less capable of drawing people's attention.

Entries

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val colorResId: Int

is the color resource ID that can be used for displaying the color.

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
open override val hasOutline: Boolean

when true the color should be displayed with an outline, when false then no outline will be drawn.

Link copied to clipboard

defines the luminance of the color, useful when determining which type of wordmark to use or when determining the surface color of text widgets on the button.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val value: Int

Functions

Link copied to clipboard

Provides the correct ColorStateList given a Context.

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.