Skip to content

Instantly share code, notes, and snippets.

@sergenes
Created June 21, 2021 16:28
Show Gist options
  • Save sergenes/83c5332c38f100b6df6f671b2d32e040 to your computer and use it in GitHub Desktop.
Save sergenes/83c5332c38f100b6df6f671b2d32e040 to your computer and use it in GitHub Desktop.
val shape = when (type) {
RowType.TOP -> {
RoundedCornerShape(normalRadius, normalRadius)
}
RowType.BOTTOM -> {
RoundedCornerShape(
noRadius,
noRadius,
normalRadius,
normalRadius)
}
RowType.SINGLE -> {
RoundedCornerShape(
normalRadius,
normalRadius,
normalRadius,
normalRadius)
}
else -> {
RoundedCornerShape(noRadius)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment