Hello, I updated* the compose version from 1.0.0-alpha01 to 1.0.0-alpha05 and my component which was made using ConstraintLayout seems to be broken.
More on this thread.
☝️ 1
For example, here is a list of same views but it is behaving different for different indexes.
There seems to be an issue with the z-index of children of ConstraintLayout.
Is anyone else facing this issue? or maybe I’m missing something?
z
Zach Klippenstein (he/him) [MOD]
10/17/2020, 6:47 PM
Yea I noticed that too, i think it's reversed. Probably related to the change where the order of place calls determines the z order.
h
Halil Ozercan
10/17/2020, 7:42 PM
I was also working on an animation where I needed to draw some content on top of a button, using Box as the parent. Finally I gave up and ended up using zIndex(10000)
h
Hitanshu Dhawan
10/17/2020, 8:12 PM
@Zach Klippenstein (he/him) [MOD] in 1.0.0-alpha01 the last UI which was emitted would come on top of others, this logic seems to be changed in 05.
Also, it is not consistent, the same UI is laid out differently/randomly as seen on the screenshot.
z
Zach Klippenstein (he/him) [MOD]
10/17/2020, 8:40 PM
I am not sure what the constraint layout composable is doing under the hood, but using place calls to specify z order is a new feature in alpha05, it's in the release notes.
We should definitely file a bug for this, I didn't have time to file it when I noticed it but can do next week, unless you beat me to it 😉