Package-level declarations

Types

Link copied to clipboard
class ShapeDrawable(shape: Shape, isLtr: Boolean, density: Float, width: Int = 0, height: Int = 0) : Drawable

Creates a Drawable out of the provided shape.

Functions

Link copied to clipboard

Creates a CorneredShape with cut corners of the provided size.

fun Shapes.cutCornerShape(topLeft: Float = 0.0f, topRight: Float = 0.0f, bottomRight: Float = 0.0f, bottomLeft: Float = 0.0f): CorneredShape

Creates a CorneredShape with cut corners of the provided sizes.

Link copied to clipboard

Creates a CorneredShape with rounded corners of the provided size.

fun Shapes.roundedCornerShape(topLeft: Float = 0.0f, topRight: Float = 0.0f, bottomRight: Float = 0.0f, bottomLeft: Float = 0.0f): CorneredShape

Creates a CorneredShape with rounded corners of the provided sizes.

Link copied to clipboard
fun Shape.toDrawable(context: Context, intrinsicWidth: Int = 0, intrinsicHeight: Int = 0): Drawable

Converts this Shape to a Drawable.