Shape Appearance Model
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.
Inheritors
Constructors
Types
Link copied to clipboard
class Builder
Builder to create instances of ShapeAppearanceModels.
Link copied to clipboard
A UnaryOperator that takes and returns a CornerSize.
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
open fun builder(context: Context, @StyleRes shapeAppearanceResId: Int, @StyleRes shapeAppearanceOverlayResId: Int): ShapeAppearanceModel.Builder
open fun builder(@NonNull context: Context, attrs: AttributeSet, @AttrRes defStyleAttr: Int, @StyleRes defStyleRes: Int): ShapeAppearanceModel.Builder
open fun builder(@NonNull context: Context, attrs: AttributeSet, @AttrRes defStyleAttr: Int, @StyleRes defStyleRes: Int, @NonNull defaultCornerSize: CornerSize): ShapeAppearanceModel.Builder
Link copied to clipboard
Checks Corner and Edge treatments to see if we can use drawRoundRect "} to draw this model.
Link copied to clipboard
Returns a builder with the edges and corners from this ShapeAppearanceModel
Link copied to clipboard
Returns a copy of this ShapeAppearanceModel with the same edges and corners, but with the corner size for all corners updated.
Link copied to clipboard
open fun withTransformedCornerSizes(@NonNull op: ShapeAppearanceModel.CornerSizeUnaryOperator): ShapeAppearanceModel
Returns a copy of this ShapeAppearanceModel with the same edges and corners, but with the corner size for all corners converted by a CornerSizeUnaryOperator.