MicroRJ
MicroRJ

Reputation: 173

Squircle with Java Canvas in Android

I was asked to work on this shape called the Squircle. It is very similar to a rounded rectangle or square with rounded corners. However that's not the desired shape. How can I achieve this?

Upvotes: 0

Views: 698

Answers (2)

MicroRJ
MicroRJ

Reputation: 173

I came up with my own solution, and today is a very simple library, here's the link. https://github.com/MicroRJ/android_superellipse

Here are a few sample images of my particular output.

enter image description here

Squircles

Upvotes: 1

Alex
Alex

Reputation: 11579

You can create Shape Drawable and set corner radius.

Upvotes: 0

Related Questions