Created
September 16, 2023 10:14
-
-
Save AungThiha/7e0d6282791ec523476e8b2d46a2ebdf to your computer and use it in GitHub Desktop.
Used in article "Jetpack Compose Anchored Draggable Item in MotionLayout"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ... | |
| 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