Last active
September 16, 2023 10:07
-
-
Save AungThiha/ba2f6252dfb042a5a9196f794d2f3b2a 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
| { | |
| ConstraintSets: { | |
| start: { | |
| ... | |
| actionsTopBg: { | |
| width: 'spread', | |
| height: 0, | |
| start: ['parent', 'start', 16], | |
| end: ['parent', 'end', 16], | |
| top: ['date','bottom'], | |
| }, | |
| actions: { | |
| width: 'spread', | |
| height: 'wrap', | |
| start: ['parent', 'start', 16], | |
| end: ['parent', 'end', 16], | |
| top: ['actionsTopBg','bottom'], | |
| custom: { | |
| background: '#444444' | |
| } | |
| }, | |
| actionsBottomBg: { | |
| width: 'spread', | |
| height: 0, | |
| start: ['parent', 'start', 16], | |
| end: ['parent', 'end', 16], | |
| top: ['actions','bottom'], | |
| }, | |
| text: { | |
| width: 'spread', | |
| height: 'spread', | |
| start: ['parent', 'start', 16], | |
| end: ['parent', 'end', 16], | |
| top: ['actionsBottomBg', 'bottom', 16], | |
| bottom: ['parent', 'bottom'] | |
| } | |
| }, | |
| end: { | |
| ... | |
| actionsTopBg: { | |
| width: 'spread', | |
| height: 10, | |
| start: ['parent', 'start'], | |
| end: ['parent', 'end'], | |
| top: ['subTitle','bottom'], | |
| }, | |
| actions: { | |
| width: 'spread', | |
| height: 'wrap', | |
| start: ['parent', 'start'], | |
| end: ['parent', 'end'], | |
| top: ['actionsTopBg','bottom'], | |
| custom: { | |
| background: '#9b0024' | |
| } | |
| }, | |
| actionsBottomBg: { | |
| width: 'spread', | |
| height: 10, | |
| start: ['parent', 'start'], | |
| end: ['parent', 'end'], | |
| top: ['actions','bottom'], | |
| }, | |
| text: { | |
| width: 'spread', | |
| height: 'spread', | |
| start: ['parent', 'start'], | |
| end: ['parent', 'end'], | |
| top: ['actionsBottomBg','bottom', 16], | |
| bottom: ['parent','bottom'], | |
| } | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment