Created
September 11, 2023 17:50
-
-
Save AungThiha/6bfeae1694acc57ad408b9a51863a55f to your computer and use it in GitHub Desktop.
used for article titled "Jetpack Compose Anchored Draggable Item in MotionLayout". We have the start and end point the same here. This is just to display the initial still UI
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: { | |
| headerImage: { | |
| width: "spread", | |
| height: 250, | |
| top: ['parent', 'top'], | |
| start: ['parent', 'start'], | |
| end: ['parent', 'end'], | |
| translationY: 0, | |
| alpha: 1 | |
| }, | |
| title: { | |
| width: 'spread', | |
| height: 'wrap', | |
| start: ['parent', 'start'], | |
| end: ['parent', 'end'], | |
| top: ['parent','top', 200], | |
| }, | |
| titleDivider: { | |
| width: 'spread', | |
| height: 'wrap', | |
| start: ['parent', 'start'], | |
| end: ['parent', 'end'], | |
| top: ['title','bottom'], | |
| }, | |
| subTitle: { | |
| width: 'spread', | |
| height: 'wrap', | |
| start: ['parent', 'start'], | |
| end: ['parent', 'end'], | |
| top: ['titleDivider','bottom'], | |
| }, | |
| subTitleDivider: { | |
| width: 'spread', | |
| height: 'wrap', | |
| start: ['parent', 'start'], | |
| end: ['parent', 'end'], | |
| top: ['subTitle', 'bottom'], | |
| }, | |
| date: { | |
| width: 'spread', | |
| height: 'wrap', | |
| start: ['parent', 'start'], | |
| end: ['parent', 'end'], | |
| top: ['subTitleDivider', 'bottom'], | |
| }, | |
| actions: { | |
| width: 'spread', | |
| height: 'wrap', | |
| start: ['parent', 'start', 16], | |
| end: ['parent', 'end', 16], | |
| top: ['date','bottom'] | |
| }, | |
| text: { | |
| width: 'spread', | |
| height: 'spread', | |
| start: ['parent', 'start', 16], | |
| end: ['parent', 'end', 16], | |
| top: ['actions', 'bottom', 16], | |
| bottom: ['parent', 'bottom'] | |
| } | |
| }, | |
| end: { | |
| ... | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment