Skip to content

Instantly share code, notes, and snippets.

@yuriyskulskiy
Created August 13, 2020 13:32
Show Gist options
  • Save yuriyskulskiy/e6aed999d772a3ea6d38a33b41113588 to your computer and use it in GitHub Desktop.
Save yuriyskulskiy/e6aed999d772a3ea6d38a33b41113588 to your computer and use it in GitHub Desktop.
GlowingEdgeEffect: modify draw()
public boolean draw(Canvas canvas) {
canvas.clipRect(mBounds.left,
mBounds.top,
mBounds.right,
mBounds.bottom + mBounds.bottom * BlUR_RADIUS_FACTOR);
...
// mPaint.setAlpha((int) (0xff * mGlowAlpha)); alpha is not going to be changed during animation
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment