Function

cornerRadius

Adds rounded corners for the current view.

cornerRadius

Source set: Android
public fun GlanceModifier.cornerRadius(radius: Dp): GlanceModifier

Adds rounded corners for the current view.

Note: Only works on Android S+.

cornerRadius

Source set: Android
public fun GlanceModifier.cornerRadius(@DimenRes radius: Int): GlanceModifier

Adds rounded corners for the current view, using resources.

Note: Only works on Android S+.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: