Skip to content

Instantly share code, notes, and snippets.

@ricknout
Last active August 25, 2020 18:04
Show Gist options
  • Save ricknout/8309335e3020c4315547a7bacbe40fd9 to your computer and use it in GitHub Desktop.
Save ricknout/8309335e3020c4315547a7bacbe40fd9 to your computer and use it in GitHub Desktop.
MDC-Android MaterialShapeDrawable fill and stroke
/* Copyright 2020 Google LLC.
SPDX-License-Identifier: Apache-2.0 */
// Fill color
msd.setFillColor(fillColorStateList)
// Stroke color
msd.setStrokeColor(strokeColorStateList)
// Stroke width
msd.setStrokeWidth(strokeWidthDimension)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment