Skip to content

Exception. Invalid radius value! #9

Description

@misterbobdobalina

Get error with
app:outerShadowWidth="0.5"

mOuterShadowRect.width() / 2.0f
in:
paint.setShader(new RadialGradient(... , ... , here! , ...

public Paint getDefaultOuterShadowPaint() {
    final Paint paint = new Paint(Paint.ANTI_ALIAS_FLAG);
    paint.setStyle(Paint.Style.FILL);
    paint.setShader(new RadialGradient(CENTER, CENTER, mOuterShadowRect.width() / 2.0f, OUTER_SHADOW_COLORS, OUTER_SHADOW_POS,
            TileMode.MIRROR));
    return paint;
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions