Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception. Invalid radius value! #9

Open
misterbobdobalina opened this issue Oct 24, 2014 · 1 comment
Open

Exception. Invalid radius value! #9

misterbobdobalina opened this issue Oct 24, 2014 · 1 comment

Comments

@misterbobdobalina
Copy link

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;
}
@greenspand
Copy link

Try to add eaven numbers instead of 5. For example 6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants