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 Simple Android App Creating the Screen Layout Setting a Fullscreen Theme

Text and elements are all at the top of the screen.

When ever I test my app on my phone all the text and buttons are at the top of the screen jumbled together, but the preview in Studio is not like that. I tried changing the screen size on Studio to match my phone's screen but that still hasn't worked. http://prntscr.com/fs0mqv There is the studio picture and here is the one on my phone. http://prntscr.com/fs0nfg

3 Answers

Ben Jakuben
STAFF
Ben Jakuben
Treehouse Teacher

Paste in your layout code from activity_main.xml and we can try to help you troubleshoot.

Osvaldo Restrepo
PLUS
Osvaldo Restrepo
Courses Plus Student 483 Points

Hello dude, I am a newbie. But that happened to me. What you have to do is in the Design View. When you click each element, some little dots appear on each side. You have to drag them to each side of the screen. An arrow in zigzag must appear on each side. That's the constrain.