Shapeable

public interface Shapeable

Known direct subclasses
Chip

Chips are compact elements that represent an attribute, text, entity, or action.

FloatingActionButton

Floating action buttons are used for a special type of promoted action.

MaskableFrameLayout

A FrameLayout than is able to mask itself and all children.

MaterialButton

A convenience class for creating a new Material button.

MaterialCardView

Provides a Material card.

MaterialShapeDrawable

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

RippleDrawableCompat

A compat Drawable that is used to provide an overlay for pressed, focused, and hovered states (only when in enabled).

ShapeableImageView

An ImageView that draws the bitmap with the provided Shape.

Known indirect subclasses
ChipDrawable

ChipDrawable contains all the layout and draw logic for Chip.

CircularRevealCardView

A CircularRevealWidget wrapper for MaterialCardView.

ExtendedFloatingActionButton

Extended floating action buttons are used for a special type of promoted action.

TransformationChildCard

This class is deprecated.

Use com.google.android.material.transition.MaterialContainerTransform instead.


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

Summary

Public methods

abstract ShapeAppearanceModel

Returns the ShapeAppearanceModel used for the shape definition.

abstract void

Sets the ShapeAppearanceModel that defines the shape.

Public methods

getShapeAppearanceModel

abstract ShapeAppearanceModel getShapeAppearanceModel()

Returns the ShapeAppearanceModel used for the shape definition.

This ShapeAppearanceModel can be modified to change the shape.

setShapeAppearanceModel

abstract void setShapeAppearanceModel(ShapeAppearanceModel shapeAppearanceModel)

Sets the ShapeAppearanceModel that defines the shape.