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

Android Build a Self-Destructing Message Android App Starting the App Adding the Login Screen

David Vine
David Vine
1,542 Points

Positioning text fields on Android layout screen

In the video, when you want to place the password text field below the username text field, you just point to the area below the username field, the screen shows some green lines indicating it will be placed below the username field, and it is placed there.

For me, the screen shows orange lines, and no matter where I position the cursor, it always places the password text field on top of the user name text field. Why does it do that? How can I place it where ever I want (or at least, how can I place it directly below the username field?)?

1 Answer

David Vine
David Vine
1,542 Points

Got it- I was using a framelayout instead of a relative layout.