Last active
April 14, 2023 10:00
-
-
Save romandanylyk/bf111f241af066ea79fd5e13033bc967 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| int radius; // at the beggining radius equals 0 | |
| @Override | |
| protected void onDraw(Canvas canvas) { | |
| int viewWidth = getWidth() / 2; | |
| int viewHeight = getHeight() / 2; | |
| int leftTopX = viewWidth - 150; | |
| int leftTopY = viewHeight - 150; | |
| int rightBotX = viewWidth + 150; | |
| int rightBotY = viewHeight + 150; | |
| canvas.drawRoundRect(leftTopX, leftTopY, rightBotX, rightBotY, radius, radius, backgroundPaint); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
where can i get the full code of this