PopoverStyle

public class PopoverStyle


Style attributes for the popover.

Summary

Constants

static final PopoverStyle

The default popover style.

Public fields

@ColorInt @Nullable Integer

The background color of the popover.

float

The border radius of the popover.

float

The padding around the content of the popover.

PopoverShadow

The shadow of the popover.

Public constructors

Default constructor for PopoverStyle.

PopoverStyle(
    float padding,
    @ColorInt Integer backgroundColor,
    float borderRadius,
    PopoverShadow shadow
)

Creates a PopoverStyle with the specified attributes.

Public methods

@Nullable Integer

Returns the background color of the popover.

float

Returns the border radius of the popover.

float

Returns the padding around the content of the popover.

PopoverShadow

Returns the shadow of the popover.

PopoverStyle

Sets the background color of the popover.

PopoverStyle
setBorderRadius(float borderRadius)

Sets the border radius of the popover.

PopoverStyle
setPadding(float padding)

Sets the padding around the content of the popover.

PopoverStyle

Sets the shadow of the popover.

Constants

DEFAULT

public static final PopoverStyle DEFAULT

The default popover style.

Public fields

backgroundColor

public @ColorInt @Nullable Integer backgroundColor

The background color of the popover.

borderRadius

public float borderRadius

The border radius of the popover.

padding

public float padding

The padding around the content of the popover.

shadow

public PopoverShadow shadow

The shadow of the popover.

Public constructors

PopoverStyle

public PopoverStyle()

Default constructor for PopoverStyle.

PopoverStyle

public PopoverStyle(
    float padding,
    @ColorInt Integer backgroundColor,
    float borderRadius,
    PopoverShadow shadow
)

Creates a PopoverStyle with the specified attributes.

Parameters
float padding

The padding around the content of the popover.

@ColorInt Integer backgroundColor

The background color.

float borderRadius

The border radius of the popover.

PopoverShadow shadow

The shadow style.

Public methods

getBackgroundColor

public @Nullable Integer getBackgroundColor()

Returns the background color of the popover.

getBorderRadius

public float getBorderRadius()

Returns the border radius of the popover.

getPadding

public float getPadding()

Returns the padding around the content of the popover.

getShadow

public PopoverShadow getShadow()

Returns the shadow of the popover.

setBackgroundColor

public PopoverStyle setBackgroundColor(@ColorInt @Nullable Integer backgroundColor)

Sets the background color of the popover.

setBorderRadius

public PopoverStyle setBorderRadius(float borderRadius)

Sets the border radius of the popover.

setPadding

public PopoverStyle setPadding(float padding)

Sets the padding around the content of the popover.

setShadow

public PopoverStyle setShadow(PopoverShadow shadow)

Sets the shadow of the popover.