So, I have this strange and annoying problem with constraint layouts - some of the views in the Constraint layout change the width and height to 0dp from a custom value WITHOUT ANY NOTICE. This behavior is incompatible because I will build my layouts, I will test them, I will be happy and move on to the next thing, but after a few hours I will see that the values โโreturn to 0dp, and the layouts are all messed up. It's good that uncommitted files in Android studio turn blue, so I can just notice this unwanted change and ctrl + z
I just started to implement and convert various layouts into constraint layouts, so maybe there is something that I missed? Can anyone cause this very unwanted behavior?
My layout structure is
Root - Constraint Layout views views ViewPager Constraint Layout Constraint Layout Constraint Layout
The constraint layout contains other constraint layouts, but I don't think this should cause any problems.
Edit: I'm currently using Android Studio 3.0 Canary 7, developing much more complex layouts, and I haven't had this problem since upgrading to 3.0
source share