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

 

Solution

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.

Share:
Denish Patel

Thanks alot for such enlightening efforts you are making to help us go on professional development and be intruduced to international education.

Comments
  • Mahantesh Gurav says:
    25/10/2017

    I am glad to know about the jargons of online learning. It would be a bit of a minefield if you did not get it explained to you.

    Replay
Leave a Comment

FeaturedEmployers