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@NonNull public BannerAppearance build()
BannerAppearance
with the specified appearance values.BannerAppearance.@NonNull public BannerAppearance.Builder setBackgroundColor(int backgroundColor)
backgroundColor - Banner background color.@NonNull public BannerAppearance.Builder setBorderColor(int borderColor)
borderColor - Banner border color.@NonNull public BannerAppearance.Builder setBorderWidth(float borderWidth)
borderWidth - Banner border width.@NonNull public BannerAppearance.Builder setContentPadding(@NonNull HorizontalOffset contentPadding)
contentPadding - Horizontal space between banner edge and content.@NonNull public BannerAppearance.Builder setImageMargins(@NonNull HorizontalOffset imageMargins)
imageMargins - Horizontal image margins: left margin determines image offset from left
content padding, right margin determines offset between image and text block.