here's an idea.
Use ConstraintLayout's barriers at the right side of the blue one. A vertical barrier.
Right at the horizontal end of blue, starting from vertical top of the blue, to the vertical end of the parent
Kaanixir
02/13/2024, 12:28 AM
you just need to constrain them all starting from the end of your barrier after that. Problem solved, easy peasy
s
Stan Kocken
02/14/2024, 3:19 PM
Thanks for the idea.
I have to test this, but I'm not sure how it can works as the blue item is within an
item{}
, can I reference the parent anyway?
k
Kaanixir
02/15/2024, 10:57 AM
hmmm not sure, I'm still not very experienced with compose's constraintlayout, I was imagining the solution in traditional constraintlayout 😁
s
Stan Kocken
02/17/2024, 10:04 AM
Yeah, me too, but in traditional constraintlayout you cannot reference views which are outside of your constraintlayout, as those items are within a list it cannot be part of the constraintlayout.