Skip to content

Instantly share code, notes, and snippets.

@AungThiha
Created September 16, 2023 10:14
Show Gist options
  • Select an option

  • Save AungThiha/7e0d6282791ec523476e8b2d46a2ebdf to your computer and use it in GitHub Desktop.

Select an option

Save AungThiha/7e0d6282791ec523476e8b2d46a2ebdf to your computer and use it in GitHub Desktop.
Used in article "Jetpack Compose Anchored Draggable Item in MotionLayout"
...
val actionsProperties = motionProperties("actions")
Box(
modifier = Modifier
.background(actionsProperties.value.color("background"))
.layoutId("actionsTopBg")
)
Row(
modifier = Modifier
.background(actionsProperties.value.color("background"))
.layoutId("actions")
,
verticalAlignment = Alignment.CenterVertically,
horizontalArrangement = Arrangement.SpaceEvenly,
) {
...
}
Box(
modifier = Modifier
.background(actionsProperties.value.color("background"))
.layoutId("actionsBottomBg")
)
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment