Skip to content

Rounded corners broken after 1.6.12 #970

@jt-gilkeson

Description

@jt-gilkeson

Please complete the following information:

  • Library Version 1.7.6

Describe the Bug:
We have rounded corners set on our popup which worked perfect in 1.6.12 but in latest releases the corners now appear squared.

Add a clear description about the problem.
We use an xml layout with the following helper to launch. This used to give rounded corners but now has square corners. Switching back to 1.6.12 shows the rounded corners.

fun Context.buildCustomBalloon(@LayoutRes layout: Int, owner: LifecycleOwner?): Balloon =
    Balloon.Builder(this)
        .setLayout(layout)
        .setBackgroundColorResource(R.color.colors_background_default_primary)
        .setCornerRadiusResource(R.dimen.radius_l)
        .setArrowPositionRules(ArrowPositionRules.ALIGN_ANCHOR)
        .setArrowSizeResource(R.dimen.DP_28)
        .setArrowTopPaddingResource(R.dimen.spacing_s) // makes the arrow wider than it is tall
        .setBalloonAnimation(BalloonAnimation.ELASTIC)
        .setIsVisibleOverlay(true) // sets the visibility of the overlay (scrim) for highlighting an anchor.
        .setOverlayColorResource(R.color.colors_overlay_default_primary)
        .setOverlayShape(BalloonOverlayRoundRect(R.dimen.radius_m, R.dimen.radius_m))
        .setOverlayPaddingResource(R.dimen.spacing_3_xs)
        .setDismissWhenTouchOutside(false)
        .setDismissWhenOverlayClicked(false)
        .setLifecycleOwner(owner)
        .build()

Expected Behavior:
The corners of the popup should continue to show with rounded corners

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions