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
PRO
Osvaldo Restrepo
Pro 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.