Skip to content

Instantly share code, notes, and snippets.

@TayfunCesur
Created June 22, 2019 18:47
Show Gist options
  • Save TayfunCesur/18a4007b86af36e2b05575d714b8c173 to your computer and use it in GitHub Desktop.
Save TayfunCesur/18a4007b86af36e2b05575d714b8c173 to your computer and use it in GitHub Desktop.
override fun onSizeChanged(w: Int, h: Int, oldw: Int, oldh: Int) {
super.onSizeChanged(w, h, oldw, oldh)
mCurveStartPoint.set(0, radius)
mCurveEndPoint.set(w, radius)
mControlPoint1.set(
mCurveStartPoint.x + radius,
mCurveStartPoint.y - radius)
mControlPoint2.set(
mCurveEndPoint.x - radius,
mCurveEndPoint.y - radius)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment