While developing an app and working with ConstraintLayout you might have encountered the following error and the design looks completely screwed.

This view is not constrained, it only has designtime positions, so it will jump to (0,0) unless you add constraints



This problem has a very simple solution. Simply Right Click on that particular element and go to the option Constraint Layout >> Infer Constraints
This will add few lines of code to all the elements and the problem with be solved.

Leave a Reply

Your email address will not be published. Required fields are marked *