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

Nyle Cohen
Nyle Cohen
448 Points

My Buttons are stuck in top left corner

All of my buttons are stuck in the top left corner. I am trying to make a clicker counter app but all of my buttons are stuck in the top left no matter where i put them. PLEASE HELP!!!!

3 Answers

Rafael Miranda
Rafael Miranda
17,121 Points

Hi,

maybe you need to use a layout like linear and set the orientation horizontal. Then your buttons will be one above the other.

Or if you are using constraint layout you need to use the arrows to set the order.

Sachin Jayaram
Sachin Jayaram
5,461 Points

You are probably using a constraint layout. In order to learn how to use buttons and field text in a constraint layout follow the instruction in the following page, https://developer.android.com/training/basics/firstapp/building-ui.html

Wejdan Al Mubarky
PLUS
Wejdan Al Mubarky
Courses Plus Student 1,451 Points

in the design view put all the buttons and the stuff the way you want and then click on Infer constraints you can find it up with the eye icon (the forth one from the left). then run the app and it must look good now! I hope that helps