Skip to content

Instantly share code, notes, and snippets.

@GiuseppeGiacoppo
Created March 30, 2022 22:25
Show Gist options
  • Save GiuseppeGiacoppo/6c2f02b42357e359e3d3a67e9c7d038c to your computer and use it in GitHub Desktop.
Save GiuseppeGiacoppo/6c2f02b42357e359e3d3a67e9c7d038c to your computer and use it in GitHub Desktop.
val ticketShapePathModel = ShapeAppearanceModel
.Builder()
.setAllCorners(CornerFamily.ROUNDED, 36f)
.setLeftEdge(TicketEdgeTreatment(36f))
.setRightEdge(TicketEdgeTreatment(36f))
.build()
class TicketDrawable : MaterialShapeDrawable(ticketShapePathModel)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment