Skip to content

Instantly share code, notes, and snippets.

@Developer1Dev
Forked from SumeraMartin/DonutProgress.kt
Created May 26, 2020 11:42
Show Gist options
  • Save Developer1Dev/53bd6dc0e1849b5e7f55658cf284a74a to your computer and use it in GitHub Desktop.
Save Developer1Dev/53bd6dc0e1849b5e7f55658cf284a74a to your computer and use it in GitHub Desktop.
val model = DonutModel(
cap = 8f,
masterProgress = 1f,
sections = listOf(
DonutSection(amount = 1f, color = Color.Cyan),
DonutSection(amount = 1f, color = Color.Red),
DonutSection(amount = 1f, color = Color.Green),
DonutSection(amount = 0f, color = Color.Blue)
)
)
DonutProgress(model = model)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment