-
- All Implemented Interfaces:
public final class BannerAppearance.BuilderBuilds a BannerAppearance.
-
-
Constructor Summary
Constructors Constructor Description BannerAppearance.Builder()Creates a new BannerAppearance.Builder for constructing a BannerAppearance
-
Method Summary
Modifier and Type Method Description BannerAppearancebuild()Constructs a BannerAppearance with the specified appearance values. BannerAppearance.BuildersetBackgroundColor(int backgroundColor)Returns Banner appearance configured with background color. BannerAppearance.BuildersetBorderColor(int borderColor)Returns Banner appearance configured with border color. BannerAppearance.BuildersetBorderWidth(float borderWidth)Returns Banner appearance configured with banner border width. BannerAppearance.BuildersetContentPadding(@NonNull() HorizontalOffset contentPadding)Returns Banner appearance configured with horizontal space between banner edge and content. BannerAppearance.BuildersetImageMargins(@NonNull() HorizontalOffset imageMargins)Returns Banner appearance configured with horizontal image margins. -
-
Constructor Detail
-
BannerAppearance.Builder
BannerAppearance.Builder()
Creates a new BannerAppearance.Builder for constructing a BannerAppearance
-
-
Method Detail
-
build
@NonNull() BannerAppearance build()
Constructs a BannerAppearance with the specified appearance values.
-
setBackgroundColor
@NonNull() BannerAppearance.Builder setBackgroundColor(int backgroundColor)
Returns Banner appearance configured with background color.
- Parameters:
backgroundColor- Banner background color.
-
setBorderColor
@NonNull() BannerAppearance.Builder setBorderColor(int borderColor)
Returns Banner appearance configured with border color.
- Parameters:
borderColor- Banner border color.
-
setBorderWidth
@NonNull() BannerAppearance.Builder setBorderWidth(float borderWidth)
Returns Banner appearance configured with banner border width.
- Parameters:
borderWidth- Banner border width.
-
setContentPadding
@NonNull() BannerAppearance.Builder setContentPadding(@NonNull() HorizontalOffset contentPadding)
Returns Banner appearance configured with horizontal space between banner edge and content.
- Parameters:
contentPadding- Horizontal space between banner edge and content.
-
setImageMargins
@NonNull() BannerAppearance.Builder setImageMargins(@NonNull() HorizontalOffset imageMargins)
Returns Banner appearance configured with horizontal image margins. Image margins are ignored for big images which are located below text block and stretched to match banner width.
- Parameters:
imageMargins- Horizontal image margins: left margin determines image offset from left content padding, right margin determines offset between image and text block.
-
-
-
-