Class BannerAppearance.Builder

    • Method Detail

      • setBackgroundColor

        @NonNull
        public BannerAppearance.Builder setBackgroundColor​(int backgroundColor)
        Returns Banner appearance configured with background color.
        Parameters:
        backgroundColor - Banner background color.
        Returns:
        BannerAppearance.Builder with the specified background color.
      • setBorderColor

        @NonNull
        public BannerAppearance.Builder setBorderColor​(int borderColor)
        Returns Banner appearance configured with border color.
        Parameters:
        borderColor - Banner border color.
        Returns:
        BannerAppearance.Builder with the specified border color.
      • setBorderWidth

        @NonNull
        public BannerAppearance.Builder setBorderWidth​(float borderWidth)
        Returns Banner appearance configured with banner border width.
        Parameters:
        borderWidth - Banner border width.
        Returns:
        BannerAppearance.Builder with the specified banner border width.
      • setContentPadding

        @NonNull
        public 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.
        Returns:
        BannerAppearance.Builder with the specified horizontal space between banner edge and content.
      • setImageMargins

        @NonNull
        public 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.
        Returns:
        BannerAppearance.Builder with the specified horizontal image margins.