Skip to content

Instantly share code, notes, and snippets.

@romandanylyk
Last active April 14, 2023 10:00
Show Gist options
  • Select an option

  • Save romandanylyk/bf111f241af066ea79fd5e13033bc967 to your computer and use it in GitHub Desktop.

Select an option

Save romandanylyk/bf111f241af066ea79fd5e13033bc967 to your computer and use it in GitHub Desktop.
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);
}
@Lourthu08
Copy link

where can i get the full code of this

@mcanikhilprajapati
Copy link

?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment