<Android : Constraint layout difference between pr...
# stackoverflow
u
Android : Constraint layout difference between programatically vs preview I need to layout three views as like this pictures.

https://i.stack.imgur.com/TC9tb.png

Here is the respective xml code: The expected behavior is that if the green view grows in size, then the blue and red would stick to top and bottom, respectivly, with 20dp of difference. This works fine when designing the view in the preview, but when I try to layout the same view by code, the red and blue views collapse private inline...