com.google.android.material.shape

Annotations

CornerFamily

CornerFamily enum that holds which family to be used to create a CornerTreatment

MaterialShapeDrawable.CompatibilityShadowMode

Determines when compatibility shadow is drawn vs. native elevation shadows.

Interfaces

CornerSize

Allows clients to describe the size of a corner independently from a CornerTreatment.

Shapeable

Provides a mechanism to uniformly modify the ShapeAppearanceModel that backs a component or android.graphics.drawable.Drawable's shape.

Classes

AbsoluteCornerSize

A CornerSize that always uses the provided size and ignores the bounds.

CornerTreatment

A basic corner treatment (a single point which does not affect the shape).

CutCornerTreatment

A corner treatment which cuts or clips the original corner of a shape with a straight line.

EdgeTreatment

A basic edge treatment (a single straight line).

InterpolateOnScrollPositionChangeHelper

Helper class to handle shape interpolation when shaped views enter or exit the window.

MarkerEdgeTreatment

Draws an arrow on the edge given the radius of a circle.

MaterialShapeDrawable

Base drawable class for Material Shapes that handles shadows, elevation, scale and color for a generated path.

MaterialShapeUtils

Utility methods for MaterialShapeDrawable and related classes.

OffsetEdgeTreatment

Offsets a different edge treatment by the given amount.

RelativeCornerSize

A CornerSize that takes a percent and computes the size used based on the length of the shortest edge adjacent to the corner.

RoundedCornerTreatment

A corner treatment which rounds a corner of a shape.

ShapeAppearanceModel

This class models the edges and corners of a shape, which are used by to generate and render the shape for a view's background.

ShapeAppearanceModel.Builder

Builder to create instances of ShapeAppearanceModels.

ShapeAppearancePathProvider

A class to convert a ShapeAppearanceModel to a android.graphics.Path.

ShapePath

Represents the descriptive path of a shape.

ShapePath.PathArcOperation

Path arc operation.

ShapePath.PathCubicOperation

Path cubic operation.

ShapePath.PathLineOperation

Straight line operation.

ShapePath.PathOperation

Interface for a path operation to be appended to the operations list.

ShapePath.PathQuadOperation

Path quad operation.

ShapePathModel

This class is deprecated.

Use ShapeAppearanceModel instead.

TriangleEdgeTreatment

An edge treatment which draws triangles at the midpoint of an edge, facing into or out of the shape.