Created
June 9, 2016 13:47
-
-
Save stepango/afccff007c614dc7a2fa47eb7553fc4c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override fun onDraw(canvas: Canvas?) { | |
paint.setShadowLayer(8f, 0f, 0f, currentTextColor) | |
super.onDraw(canvas) | |
canvas?.drawRect(0f, 0f, measuredWidth.toFloat(), measuredHeight.toFloat(), shaderPaint) | |
paint.clearShadowLayer() | |
super.onDraw(canvas) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment