urbanairship-core/src/main/java/com/urbanairship/iam/banner/BannerFragment.java
private Drawable createBannerBackground() {
        int pressedColor = ColorUtils.setAlphaComponent(displayContent.getDismissButtonColor(), Math.round(Color.alpha(displayContent.getDismissButtonColor()) * PRESSED_ALPHA_PERCENT));

        @BorderRadius.BorderRadiusFlag
        int borderRadiusFlag = BannerDisplayContent.PLACEMENT_TOP.equals(displayContent.getPlacement()) ? BorderRadius.BOTTOM : BorderRadius.TOP;

        return BackgroundDrawableBuilder.newBuilder(getActivity())
                                        .setBackgroundColor(displayContent.getBackgroundColor())
                                        .setPressedColor(pressedColor)
                                        .setBorderRadius(displayContent.getBorderRadius(), borderRadiusFlag)
                                        .build();
    }
/**
     * Creates the banner's background drawable.
     *
     * @return The banner's background drawable.
     */
Creates the banner's background drawable.
@return The banner's background drawable.
Creates the banner ' s background drawable . @return The banner ' s background drawable .
private Drawable createBannerBackground() {
        int pressedColor = ColorUtils.setAlphaComponent(displayContent.getDismissButtonColor(), Math.round(Color.alpha(displayContent.getDismissButtonColor()) * PRESSED_ALPHA_PERCENT));
        @BorderRadius.BorderRadiusFlag
        int borderRadiusFlag = BannerDisplayContent.PLACEMENT_TOP.equals(displayContent.getPlacement()) ? BorderRadius.BOTTOM : BorderRadius.TOP;
        return BackgroundDrawableBuilder.newBuilder(getActivity())
                                        .setBackgroundColor(displayContent.getBackgroundColor())
                                        .setPressedColor(pressedColor)
                                        .setBorderRadius(displayContent.getBorderRadius(), borderRadiusFlag)
                                        .build();
    }
private Drawable createBannerBackground ( ) { int pressedColor = ColorUtils . setAlphaComponent ( displayContent . getDismissButtonColor ( ) , Math . round ( Color . alpha ( displayContent . getDismissButtonColor ( ) ) * PRESSED_ALPHA_PERCENT ) ) ; @ BorderRadius . BorderRadiusFlag int borderRadiusFlag = BannerDisplayContent . PLACEMENT_TOP . equals ( displayContent . getPlacement ( ) ) ? BorderRadius . BOTTOM : BorderRadius . TOP ; return BackgroundDrawableBuilder . newBuilder ( getActivity ( ) ) . setBackgroundColor ( displayContent . getBackgroundColor ( ) ) . setPressedColor ( pressedColor ) . setBorderRadius ( displayContent . getBorderRadius ( ) , borderRadiusFlag ) . build ( ) ; }
Creates the banner's background drawable.
Creates the banner ' s background drawable .