public static final class BannerAppearance.Builder
extends java.lang.Object
BannerAppearance
.Constructor and Description |
---|
Builder()
Creates a new
BannerAppearance.Builder
for constructing a BannerAppearance |
Modifier and Type | Method and Description |
---|---|
BannerAppearance |
build()
Constructs a
BannerAppearance
with the specified appearance values. |
BannerAppearance.Builder |
setBackgroundColor(int backgroundColor)
Returns Banner appearance configured with background color.
|
BannerAppearance.Builder |
setBorderColor(int borderColor)
Returns Banner appearance configured with border color.
|
BannerAppearance.Builder |
setBorderWidth(float borderWidth)
Returns Banner appearance configured with banner border width.
|
BannerAppearance.Builder |
setContentPadding(HorizontalOffset contentPadding)
Returns Banner appearance configured with horizontal space between banner edge and content.
|
BannerAppearance.Builder |
setImageMargins(HorizontalOffset imageMargins)
Returns Banner appearance configured with horizontal image margins.
|
public Builder()
BannerAppearance.Builder
for constructing a BannerAppearance
public BannerAppearance build()
BannerAppearance
with the specified appearance values.BannerAppearance
.public BannerAppearance.Builder setBackgroundColor(int backgroundColor)
backgroundColor
- Banner background color.public BannerAppearance.Builder setBorderColor(int borderColor)
borderColor
- Banner border color.public BannerAppearance.Builder setBorderWidth(float borderWidth)
borderWidth
- Banner border width.public BannerAppearance.Builder setContentPadding(HorizontalOffset contentPadding)
contentPadding
- Horizontal space between banner edge and content.public BannerAppearance.Builder setImageMargins(HorizontalOffset imageMargins)
imageMargins
- Horizontal image margins: left margin determines image offset from left
content padding, right margin determines offset between image and text block.