LoginSignup
0
0

CircleShapeとRoundedCornerShape(50)、どちらが良いのか

Posted at

こういう角丸にしたいときに使うやつ
image.png

結論

実装としては、どっちでも同じです。

/**
 * Circular [Shape] with all the corners sized as the 50 percent of the shape size.
 */
val CircleShape = RoundedCornerShape(50)

その他

material3ではCircleShapeを使用しているようです。
https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:compose/material3/material3/src/commonMain/kotlin/androidx/compose/material3/Shapes.kt;l=176;drc=e058f29fc93d5ab6e9489b3a2eb8246599f2704e

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0