# How Android and iOS Handle Rounded Rectangle Corners

DevFeed: [How Android and iOS Handle Rounded Rectangle Corners](<https://devfeed.tech/articles/rounded-corners-30603.md>)

Original publisher: [Read original article](<https://ryanharter.com/blog/2022/09/rounded-corners/>)

Published: 2022-09-20T03:37:48Z

Content type: tutorial

Language: en

Sources: [Blogs on Ryan Harter](<https://devfeed.tech/sources/blogs-on-ryan-harter.md>)

Topics: [Graphics](<https://devfeed.tech/topics/graphics.md>), [Android](<https://devfeed.tech/topics/android.md>), [iOS](<https://devfeed.tech/topics/ios.md>), [GUI](<https://devfeed.tech/topics/gui.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [graphics](<https://devfeed.tech/tags/graphics.md>), [ios](<https://devfeed.tech/tags/ios.md>), [ui](<https://devfeed.tech/tags/ui.md>)

## AI overview

The article examines how Android and iOS render rectangles with corner radii larger than half the shortest edge. It explains that Android restricts corner radii to half the shortest edge, while Apple's approach applies each corner radius individually and uses the resulting circle intersections.

## Source excerpt

The other day I happened to notice an interesting question that Michał Zieliński shared in an Android Graphics channel that I frequent. He had observed that if he has a 40dp square and sets a 30dp corner radius, on Android the resulting shape looks the same as a 20dp corner radius. He then concluded that, unlike iOS, Android appears to clamp the corner radii of a rectangle to half of the shortest edge length.