Skip to content

Instantly share code, notes, and snippets.

@VadimZhuk0v
Last active April 24, 2019 20:06
Show Gist options
  • Save VadimZhuk0v/46fa53ce19027cd812a9849509c308b0 to your computer and use it in GitHub Desktop.
Save VadimZhuk0v/46fa53ce19027cd812a9849509c308b0 to your computer and use it in GitHub Desktop.
val materialShapeDrawable = MaterialShapeDrawable(shapePathModel).apply {
setTint(ContextCompat.getColor(context, R.color.bottom_bar))
shadowElevation = 4
shadowRadius = 16
isShadowEnabled = true
paintStyle = Paint.Style.FILL_AND_STROKE
}
background = materialShapeDrawable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment