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 trial


In Eclipse, Palette Items in the Graphical Layout Editor keep sticking to the top left corner only.

I recently started the "Build a Self-Destructing Message Android App" project, and I'm having some trouble when I reach the "Adding the Login Screen" video tutorial.

The trouble is, as Ben drags text fields (such as the Username and Password fields) onto the login screen, they appear to arrange themselves above / below one another without too much trouble. Any time I try to do this, the two fields appear to "snap" into place at the top left corner of the view, on top of each other so you can't see both. This happens with any other form widgets I drag onto the screen (buttons, spinners, anything). Everything will just fall into that one corner. It seems that I can only change the positioning manually in the .xml editor.

Let me know if anyone can help me solve this, I'm assuming I just have some kind of auto-detect placement setting switched off.

Thank you,

  • Scott

1 Answer

Calvin Nix
Calvin Nix
43,828 Points

Hey Scott,

Did Eclipse also generate a fragment layout?

(I'm assuming your using eclipse)