Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAndrew Minert
3,984 PointsThe text and button are appearing on top of each other when I run the app, even though in the design screen show dif..
The text and button are appearing on top of each other when I run the app, even though in the design screen show different. They overlay each other on the upper left hand side the screen. Does anyone have any suggestions on how to correct this. Using Android Studio as directed by the video.
5 Answers
Henrik Jacobsson
218 PointsHi
In the Design view, above the phone/tablet window there is a few icons.
From the right: An eye (Hide constraints) A magnet(Turn of autoconnect) etc...
Press the 4th one. (Infer constraints). Run your program.
It worked for me.
Michael LaCroix
5,828 PointsThank you!! I was getting so frustrated by this.
Andrique Liu
868 PointsWorked for me as well!
Amulya Arora
6,133 PointsThank you ! It worked for me as well..
Charles Webb
1,542 PointsWhy does this work? can someone explain what 'infer constraints' does, exactly?
Charles Webb
1,542 PointsLooks to me like it properly configures the constraint layout according to some default action. This tutorial was made before the constraint layout existed so that would explain it.
Andrew Minert
3,984 PointsAndrew Minert
3,984 PointsThank you so much!
Basel Almahozi
520 PointsBasel Almahozi
520 PointsThank you So much.
Anders Christensen
2,327 PointsAnders Christensen
2,327 PointsThanks alot big help ;)